diff options
| author | kennytm <kennytm@gmail.com> | 2018-05-23 00:26:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-23 00:26:23 +0800 |
| commit | 0c4d337c3c4bf6ec0878f98251f4d1a1482cf56c (patch) | |
| tree | 4975803176a0a9a8e040d30f83ac41ecf489b5a0 /src/rustllvm/RustWrapper.cpp | |
| parent | 28e43582a3b2d1724cd81dfd88cb2a54e85e9544 (diff) | |
| parent | a86544b799b0fe81e2e2a734a2b49d16faad4f3d (diff) | |
| download | rust-0c4d337c3c4bf6ec0878f98251f4d1a1482cf56c.tar.gz rust-0c4d337c3c4bf6ec0878f98251f4d1a1482cf56c.zip | |
Rollup merge of #50963 - nnethercote:coercion-VecDeque1, r=petrochenkov
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
