about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2018-05-22 16:51:28 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2018-05-22 19:55:48 +1000
commita86544b799b0fe81e2e2a734a2b49d16faad4f3d (patch)
tree92771ffa1435e5489e4f1e4ba1b38a6588c7bd32 /src/rustllvm/RustWrapper.cpp
parent4c26e2e3fba61f18caca8bd43c57e1f1d799f07b (diff)
downloadrust-a86544b799b0fe81e2e2a734a2b49d16faad4f3d.tar.gz
rust-a86544b799b0fe81e2e2a734a2b49d16faad4f3d.zip
Right-size the `VecDeque` in `coerce_unsized`.
The default capacity of a VecDeque is 8, which is excessive here. In a
"base incremental" check build of rustc-perf's tuple-stress benchmark,
this decreases total heap allocation by 26%. I couldn't see a clear
speedup, but it can't hurt.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions