diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-12-19 13:23:37 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-12-19 14:00:44 +1100 |
| commit | 81632513c13495fd269082d35916ebcd91d15658 (patch) | |
| tree | 3115d8965dcb8baca15748a7839c07868677da07 /src/rustllvm/RustWrapper.cpp | |
| parent | b6933f8d8b86f78ac7b5f70f0781d794144763a0 (diff) | |
| download | rust-81632513c13495fd269082d35916ebcd91d15658.tar.gz rust-81632513c13495fd269082d35916ebcd91d15658.zip | |
std::vec: replace .insert with a small amount of unsafe code.
This makes the included benchmark more than 3 times faster. Also, `.unshift(x)` is now faster as `.insert(0, x)` which can reuse the allocation if necessary.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
