diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-23 10:59:23 +1100 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-24 21:22:26 -0800 |
| commit | ac64db94bf1d009a43e7f3729434417bd2e59662 (patch) | |
| tree | ac7da9aa0358f1abd2457046097e68d61c3edb8f /src/libsyntax/parse | |
| parent | 16e635cdfbb6b041886d1bccd28fa5e7e34c9f47 (diff) | |
| download | rust-ac64db94bf1d009a43e7f3729434417bd2e59662.tar.gz rust-ac64db94bf1d009a43e7f3729434417bd2e59662.zip | |
std: Add Vec.reserve for rounding-up reservation.
`.reserve_exact` can cause pathological O(n^2) behaviour, so providing a `.reserve` that ensures that capacity doubles (if you step 1, 2, ..., n) is more efficient. cc #11949
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions
