Type Alias massa_models::prehash::PreHashMap

source ·
pub type PreHashMap<K, V> = HashMap<K, V, BuildHashMapper<K>>;
Expand description

HashMap specialization for PreHashed keys This hashmap is about 2x faster than the default HashMap

Aliased Type§

struct PreHashMap<K, V> {
    base: HashMap<K, V, BuildHasherDefault<HashMapper<K>>, Global>,
}

Fields§

§base: HashMap<K, V, BuildHasherDefault<HashMapper<K>>, Global>

Trait Implementations§

source§

impl<K: PreHashed, V> CapacityAllocator for PreHashMap<K, V>

source§

fn with_capacity(capacity: usize) -> Self

pre-allocate with a given capacity