Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information