about summary refs log tree commit diff
path: root/src/rt/jemalloc/test/aligned_alloc.exp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-05-25 11:04:58 -0700
committerbors <bors@rust-lang.org>2013-05-25 11:04:58 -0700
commit9d37d038fef95408bffadc8701adcd7b5a663894 (patch)
tree43db18663f616a24c05d1d71eeb35530b987ffe8 /src/rt/jemalloc/test/aligned_alloc.exp
parent6e65a3fa152d67046f1962b06e1462035fc3b8f4 (diff)
parent6c62d77830d75c5bbc9f546f944c038be2622a8b (diff)
downloadrust-9d37d038fef95408bffadc8701adcd7b5a663894.tar.gz
rust-9d37d038fef95408bffadc8701adcd7b5a663894.zip
auto merge of #6737 : dotdash/rust/static_keywords, r=pcwalton
Currently, keywords are stored in hashsets that are recreated for every
Parser instance, which is quite expensive since macro expansion creates
lots of them. Additionally, the parser functions that look for a keyword
currently accept a string and have a runtime check to validate that they
actually received a keyword.

By creating an enum for the keywords and inserting them into the
ident interner, we can avoid the creation of the hashsets and get static
checks for the keywords.

For libstd, this cuts the parse+expansion part from ~2.6s to ~1.6s.
Diffstat (limited to 'src/rt/jemalloc/test/aligned_alloc.exp')
0 files changed, 0 insertions, 0 deletions