2 releases
0.1.0 | Jan 4, 2025 |
---|---|
0.1.0-alpha | Dec 13, 2024 |
#2253 in Algorithms
180 downloads per month
5KB
73 lines
MuseMap
Fast DoS-resistant hashmap based on MuseAir hash algorithm.
The output of the Hasher in this crate may vary depending on the version or the platform. It should only be used for in-memory maps.
Due to MuseAir is non-crypto, this crate should NOT be used for cryptographic purpose.
Quick usage
use musemap::{HashMap, HashMapExt};
let mut map = HashMap::new();
map.insert(1, 2);
map.insert(3, 4);
assert_eq!(map.get(&1), Some(&2));
assert_eq!(map.get(&3), Some(&4));
Dependencies
~25KB