about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-01-18 23:16:33 -0800
committerbors <bors@rust-lang.org>2014-01-18 23:16:33 -0800
commit7d79cc73fb4c0fcbdf8bb47a3c96ae9dadbd1895 (patch)
treee413cba9e05ef70754aaa077170aeeeecb09272b /src/rustllvm/RustWrapper.cpp
parent6d55211700545d253dec4ebbe386832e00d2a247 (diff)
parent68517a2cca613d2018819d0eb38f6c0a864d1836 (diff)
downloadrust-7d79cc73fb4c0fcbdf8bb47a3c96ae9dadbd1895.tar.gz
rust-7d79cc73fb4c0fcbdf8bb47a3c96ae9dadbd1895.zip
auto merge of #11616 : huonw/rust/ast_map, r=pnkfelix
NodeIds are sequential integers starting at zero, so we can achieve some
memory savings by just storing the items all in a line in a vector.

The occupancy for typical crates seems to be 75-80%, so we're already
more efficient than a HashMap (maximum occupancy 75%), not even counting
the extra book-keeping that HashMap does.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions