blog.8-p.info

There is a Rust channel in Amazon and I’ve learned about aHash recently.

aHash implements a hash function based on AES (Advanced Encryption Standard). Since modern x86 CPUs have specialized instructions for processing AES, called AES-NI, aHash is faster than other hashing algorithms.

Hashbrown, Rust’s standard HashMap implementation has been using aHash as its default since v0.5.1.

However, note that Rust’s standard HashMap is using SipHash as its hashing function.