diff options
| author | bors <bors@rust-lang.org> | 2013-05-02 09:18:37 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-05-02 09:18:37 -0700 |
| commit | 69316f06f6554c710c5e51e24d06523de166b63c (patch) | |
| tree | b1d919347c473a9fccb7efff2ae8ca0a261d6ca9 /src/rt/rust_run_program.cpp | |
| parent | 1c64f7a0f73dde275ba06cdfd3c3b6b5f2f9e39d (diff) | |
| parent | 5714e2c11b939628247dd0107545e2feb8b74b47 (diff) | |
| download | rust-69316f06f6554c710c5e51e24d06523de166b63c.tar.gz rust-69316f06f6554c710c5e51e24d06523de166b63c.zip | |
auto merge of #6182 : huonw/rust/core-str-opts, r=nikomatsakis
This adds #[inline] to many very common string routines (e.g. `len`). It also rewrites `repeat` to not use `+=` and make it O(n) rather than O(n^2), and also concat/connect(_slices) to reduce the overhead of reallocations, and constantly `set_len`ing (etc) in `push_str`. (The added complexity might not be worth the 20% speedup though.)
Diffstat (limited to 'src/rt/rust_run_program.cpp')
0 files changed, 0 insertions, 0 deletions
