Skip to main content

HashMapXxHash3_64

Type Alias HashMapXxHash3_64 

Source
pub type HashMapXxHash3_64<K, V> = HashMap<K, V, BuildHasherDefault<XxHash3_64>>;
Expand description

An alias for HashMap that hashes with xxHash3_64.

The hasher keeps its secret on the stack, so a lookup costs no allocation. The hasher that ships with twox_hash allocates its secret on every hash operation, which made every header lookup on the request path allocate.

Aliased Typeยง

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