`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%. |
||
|---|---|---|
| .. | ||
| interpret | ||
| cache.rs | ||
| mod.rs | ||
| mono.rs | ||
| tcx.rs | ||
| traversal.rs | ||
| visit.rs | ||