Skip to main content

FastMap

Type Alias FastMap 

Source
pub type FastMap<K, V> = HashMap<K, V, RandomState>;
Expand description

Hasher for the statistics maps.

The index families themselves are no longer hashed: they are keyed by a dense integer and read by array index (see IndexStore). What is left hashed is per-operator bookkeeping, whose keys are dense op ids, and there std’s default SipHash still buys DoS resistance no internal key needs.

foldhash rather than rustc-hash or a bespoke passthrough because it is already the workspace’s hasher: hashbrown 0.17’s default, hence what production Map and verified SpMap both hash with (see the note on foldhash in the workspace Cargo.toml). One hasher across the workspace is worth more than a marginal per-probe difference between the fast options.

Aliased Type§

pub struct FastMap<K, V> { /* private fields */ }