diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-12-19 13:56:53 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-12-19 23:20:20 +1100 |
| commit | acd2be46f144e932d207680a7ab1c51b529c20e3 (patch) | |
| tree | 6ecc18471b1d7696aa69fd73e64bdff9ac9e49e5 /src/rustllvm/RustWrapper.cpp | |
| parent | 81632513c13495fd269082d35916ebcd91d15658 (diff) | |
| download | rust-acd2be46f144e932d207680a7ab1c51b529c20e3.tar.gz rust-acd2be46f144e932d207680a7ab1c51b529c20e3.zip | |
std::vec: use some unsafe code to optimise `remove`.
Also, add `.remove_opt` and replace `.unshift` with `.remove(0)`. The code size reduction seem to compensate for not having the optimised special cases. This makes the included benchmark more than 3 times faster.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
