mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-01 17:42:47 +00:00
rustc_span: note the perf loss seen from IndexSet in symbol::Interner
This commit is contained in:
parent
1d03ffe0bc
commit
ca0b89aa04
@ -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…
Reference in New Issue
Block a user