diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-08-24 13:53:34 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-08-24 13:57:27 +0200 |
| commit | e58c48bddae60e21dc8958407dadf6d187b78ea9 (patch) | |
| tree | 9e56cc68bbabf7e8904f321112341e5a389fc143 /src/rt/rust.cpp | |
| parent | bead045f2724e3a256a2123a844b079f82047dd4 (diff) | |
| download | rust-e58c48bddae60e21dc8958407dadf6d187b78ea9.tar.gz rust-e58c48bddae60e21dc8958407dadf6d187b78ea9.zip | |
Optimize += [x] into a simple push operation
This is a preparation for making vectors always-on-the-heap again, which would cause way too much malloc traffic for this idiom. I will add an efficient std::vec::push in the future, and migrate += [x] to that instead. Reduces compiler code size by 3%
Diffstat (limited to 'src/rt/rust.cpp')
0 files changed, 0 insertions, 0 deletions
