about summary refs log tree commit diff
path: root/src/rt/rust.cpp
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-08-24 13:53:34 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-08-24 13:57:27 +0200
commite58c48bddae60e21dc8958407dadf6d187b78ea9 (patch)
tree9e56cc68bbabf7e8904f321112341e5a389fc143 /src/rt/rust.cpp
parentbead045f2724e3a256a2123a844b079f82047dd4 (diff)
downloadrust-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