about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/attributes.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-04 07:06:36 +0000
committerbors <bors@rust-lang.org>2023-12-04 07:06:36 +0000
commitcf8d81213c193fc0ca9f2b99165476f8ae028295 (patch)
treec42d1df90d0581519464626fcf7af881effbb1a1 /compiler/rustc_codegen_llvm/src/attributes.rs
parent85a4bd8f5873aa3ec5eb38baf63b89aa9bd21a7b (diff)
parentc1774a137da5c125450b620f428fdb9777df6473 (diff)
downloadrust-cf8d81213c193fc0ca9f2b99165476f8ae028295.tar.gz
rust-cf8d81213c193fc0ca9f2b99165476f8ae028295.zip
Auto merge of #118490 - Nadrieril:arena-alloc-matrix, r=nnethercote
Exhaustiveness: allocate memory better

Exhaustiveness is a recursive algorithm that allocates a bunch of slices at every step. Let's see if I can improve performance by improving allocations.

Already just using `Vec::with_capacity` is showing impressive improvements on my local measurements.

r? `@ghost`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
0 files changed, 0 insertions, 0 deletions