]> git.lizzy.rs Git - rust.git/commit
Use FxHashMap in syntax_pos::symbol::Interner::intern.
authorNicholas Nethercote <nnethercote@mozilla.com>
Sun, 22 Apr 2018 23:48:08 +0000 (09:48 +1000)
committerNicholas Nethercote <nnethercote@mozilla.com>
Mon, 23 Apr 2018 09:15:31 +0000 (19:15 +1000)
commitf7d4c976a2b83f3e7119bfc1377b422062187a00
treeed278c9171d2eb3b12fd6a7e96a1f353d235a897
parentd2577ca1ec1449bd83d05e540c57447574ccaa28
Use FxHashMap in syntax_pos::symbol::Interner::intern.

Because it's faster than HashMap.

This change reduces the time taken for a few of the rustc-perf
benchmarks, mostly the small ones, by up to 5%.
src/libsyntax_pos/symbol.rs