sqlite_graphrag/hash.rs
1//! Type aliases for AHash-backed collections used in hot paths.
2//!
3//! AHash is a non-cryptographic hasher that is 2-3x faster than the default
4//! SipHash for internal data where DoS resistance is not needed.
5
6/// A `HashMap` using `ahash::RandomState` as the hasher.
7pub type AHashMap<K, V> = std::collections::HashMap<K, V, ahash::RandomState>;
8
9/// A `HashSet` using `ahash::RandomState` as the hasher.
10pub type AHashSet<T> = std::collections::HashSet<T, ahash::RandomState>;