News Score: Score the News, Sort the News, Rewrite the Headlines

GitHub - ogxd/gxhash: The fastest hashing algorithm 📈

GxHash GxHash is a blazingly fast and robust non-cryptographic hashing algorithm. Usage Used directly as a hash function: let bytes: &[u8] = "hello world".as_bytes(); let seed = 1234; println!(" 32-bit hash: {:x}", gxhash::gxhash32(&bytes, seed)); println!(" 64-bit hash: {:x}", gxhash::gxhash64(&bytes, seed)); println!("128-bit hash: {:x}", gxhash::gxhash128(&bytes, seed)); Used in HashMap/HashSet: // Type alias for HashSet::<String, GxBuildHasher> let mut hashset = gxhash::GxHashSet::default();...

Read more at github.com

© News Score  score the news, sort the news, rewrite the headlines