rustc_span: note the perf loss seen from IndexSet in symbol::Interner
This commit is contained in:
parent
1d03ffe0bc
commit
ca0b89aa04
1 changed files with 4 additions and 0 deletions
|
@ -1481,6 +1481,10 @@ impl<CTX> ToStableHashKey<CTX> for Symbol {
|
|||
}
|
||||
|
||||
// The `&'static str`s in this type actually point into the arena.
|
||||
//
|
||||
// The `FxHashMap`+`Vec` pair could be replaced by `FxIndexSet`, but #75278
|
||||
// found that to regress performance up to 2% in some cases. This might be
|
||||
// revisited after further improvements to `indexmap`.
|
||||
#[derive(Default)]
|
||||
pub struct Interner {
|
||||
arena: DroplessArena,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue