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> { /* private fields */ }
Trait Implementations§
source§impl<K: PreHashed, V> CapacityAllocator for PreHashMap<K, V>
impl<K: PreHashed, V> CapacityAllocator for PreHashMap<K, V>
source§fn with_capacity(capacity: usize) -> Self
fn with_capacity(capacity: usize) -> Self
pre-allocate with a given capacity