RapidSmallMap

Type Alias RapidSmallMap 

Source
pub type RapidSmallMap<const N: usize, K, V> = SmallMap<N, K, V, RandomState, RandomState, 8>;
Expand description

Type alias for SmallMap using rapidhash as the heap hasher.

Since rapidhash is a fast hasher, LINEAR_THRESHOLD is set to 8 to prefer SIMD search earlier.

Requires the rapidhash feature.

Aliased Type§

pub enum RapidSmallMap<const N: usize, K, V> {
    Heap(HashMap<K, V, RandomState<false, true, false, false>>),
    Inline(Inline<N, K, V, RandomState<false, true, false, false>, RandomState<false, true, false, false>, 8>),
}

Variants§

§

Heap(HashMap<K, V, RandomState<false, true, false, false>>)

Heap-allocated storage using hashbrown::HashMap.

§

Inline(Inline<N, K, V, RandomState<false, true, false, false>, RandomState<false, true, false, false>, 8>)

Inline storage with SIMD-accelerated lookups.