diff options
| author | gnzlbg <gonzalobg88@gmail.com> | 2018-05-14 13:58:28 +0200 |
|---|---|---|
| committer | gnzlbg <gonzalobg88@gmail.com> | 2018-05-14 13:58:28 +0200 |
| commit | 50c4506329673d38b3170f048f546a5885dd8310 (patch) | |
| tree | 7c62848363047e2e1cac7cb78e183cab79297e02 /src/rustllvm/RustWrapper.cpp | |
| parent | 8f39dbae8cdc4418d3f79c719bd91d8b4f09c86b (diff) | |
| download | rust-50c4506329673d38b3170f048f546a5885dd8310.tar.gz rust-50c4506329673d38b3170f048f546a5885dd8310.zip | |
Switch Vec from doubling size on growth to using RawVec's reserve
On growth, Vec does not require to exactly double its size for correctness, like, for example, VecDeque does. Using reserve instead better expresses this intent. It also allows to reuse Excess capacity on growth and for better growth-policies to be provided by RawVec.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
