about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2021-08-21 16:58:29 -0700
committerNoah Lev <camelidcamel@gmail.com>2021-08-21 16:58:29 -0700
commit74147b86c50ebdaa7d8420fcbf82fa647a6db394 (patch)
tree7852d3da8833aec83c767a55d673731364e8a464 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent09f0876dc63bb386bc07d182b1bf85afb61f7db6 (diff)
downloadrust-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/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions