diff options
| author | bors <bors@rust-lang.org> | 2014-01-18 23:16:33 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-01-18 23:16:33 -0800 |
| commit | 7d79cc73fb4c0fcbdf8bb47a3c96ae9dadbd1895 (patch) | |
| tree | e413cba9e05ef70754aaa077170aeeeecb09272b /src/rustllvm/RustWrapper.cpp | |
| parent | 6d55211700545d253dec4ebbe386832e00d2a247 (diff) | |
| parent | 68517a2cca613d2018819d0eb38f6c0a864d1836 (diff) | |
| download | rust-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
