diff options
| author | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2015-07-08 03:20:00 +0200 |
|---|---|---|
| committer | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2015-07-08 19:40:40 +0200 |
| commit | a5cc17adaadf9bc4da3b6b375879fda55ed823c9 (patch) | |
| tree | 7ef2b04e1a05017b36ea8e622008c60ba2394b7f /src/rustllvm/RustWrapper.cpp | |
| parent | 6ac0ba3c3a1fc20e17923724e1e7635131eb19d6 (diff) | |
| download | rust-a5cc17adaadf9bc4da3b6b375879fda55ed823c9.tar.gz rust-a5cc17adaadf9bc4da3b6b375879fda55ed823c9.zip | |
io: Simplify BufReader::with_capacity
Use the vec![] macro directly to create a sized, zeroed vector. This should result in a big speedup when creating BufReader, because vec![0; cap] compiles to a memset call, while the previous extend code currently did not.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
