about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-05-14 14:55:15 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2019-05-20 09:17:00 +1000
commit257eaf523f7faabfc9845a238ec3776fc45fcd81 (patch)
tree1d863bfd60039acbd2611d740653bfdd8277a355 /src/test/ui/thinlto
parentb96be5b1889a28d0d44b54a18c8d0467da109656 (diff)
downloadrust-257eaf523f7faabfc9845a238ec3776fc45fcd81.tar.gz
rust-257eaf523f7faabfc9845a238ec3776fc45fcd81.zip
Introduce `InternedString::intern`.
`InternedString::intern(x)` is preferable to
`Symbol::intern(x).as_interned_str()`, because the former involves one
call to `with_interner` while the latter involves two.

The case within InternedString::decode() is particularly hot, and this
change reduces the number of `with_interner` calls by up to 13%.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions