Skip to main content

Module hashes

Module hashes 

Source
Expand description

Hash function abstraction for consistent hashing

This module provides a trait for hash functions and implementations for various hashing algorithms that can be selected via feature flags.

Structs§

Murmur3Hasher
Murmur3 hasher implementation (popular, good distribution)

Traits§

ConsistentHasher
Trait for hash functions used in consistent hashing

Type Aliases§

DefaultHasher
Default hasher type based on feature flags. Since somebody might turn on all the hashes at once, we fall through them in the order optimized for rendezvous hashing performance. Based on comprehensive testing, Murmur3 provides the best balance of speed and distribution quality.