diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-05-22 16:51:28 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-05-22 19:55:48 +1000 |
| commit | a86544b799b0fe81e2e2a734a2b49d16faad4f3d (patch) | |
| tree | 92771ffa1435e5489e4f1e4ba1b38a6588c7bd32 /src/rustllvm/RustWrapper.cpp | |
| parent | 4c26e2e3fba61f18caca8bd43c57e1f1d799f07b (diff) | |
| download | rust-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
