Skip to main content

HashSetXxHash3_64

Type Alias HashSetXxHash3_64 

Source
pub type HashSetXxHash3_64<K> = HashSet<K, BuildHasherDefault<XxHash3_64>>;
Expand description

An alias for HashSet 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 HashSetXxHash3_64<K> { /* private fields */ }