`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%. |
||
|---|---|---|
| .. | ||
| Cargo.toml | ||
| codegen_backend.rs | ||
| lib.rs | ||
| link.rs | ||
| symbol_names.rs | ||
| symbol_names_test.rs | ||