about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-02-23 10:59:23 +1100
committerAlex Crichton <alex@alexcrichton.com>2014-02-24 21:22:26 -0800
commitac64db94bf1d009a43e7f3729434417bd2e59662 (patch)
treeac7da9aa0358f1abd2457046097e68d61c3edb8f /src/libsyntax/parse
parent16e635cdfbb6b041886d1bccd28fa5e7e34c9f47 (diff)
downloadrust-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