about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-03-19 22:01:30 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2014-03-19 22:19:05 +1100
commit405b5fc1ee21cc6bc29f97719600bd94066dd58c (patch)
tree514fb71b6af315fe4b55f0c6d8ee473c67195564 /src/libsyntax/parse/parser.rs
parenta39c29415503222d3271995573b9beafa3fcc30f (diff)
downloadrust-405b5fc1ee21cc6bc29f97719600bd94066dd58c.tar.gz
rust-405b5fc1ee21cc6bc29f97719600bd94066dd58c.zip
rustc: put ty_trait behind some indirection.
This reduces ty::sty from 160 bytes to just 112, and some measurements
eddyb made suggest that the ty_trait variant occurs very
rarely (e.g. ~1% of all sty instances) hence this will result in a large
memory saving, and the cost of the indirection is unlikely to be an
issue.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions