diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2021-08-21 16:58:29 -0700 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2021-08-21 16:58:29 -0700 |
| commit | 74147b86c50ebdaa7d8420fcbf82fa647a6db394 (patch) | |
| tree | 7852d3da8833aec83c767a55d673731364e8a464 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 09f0876dc63bb386bc07d182b1bf85afb61f7db6 (diff) | |
| download | rust-74147b86c50ebdaa7d8420fcbf82fa647a6db394.tar.gz rust-74147b86c50ebdaa7d8420fcbf82fa647a6db394.zip | |
Use the length limit as the initial capacity
The length limit turns out to be a surprisingly good heuristic for initial allocation size. See here for more details [1]. [1]: https://github.com/rust-lang/rust/pull/88173#discussion_r692531631
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
