From https://cyan4973.github.io/xxHash/ , xxHash seems much faster than md5 with comparable quality. There's a Haskell implementation.
From https://cyan4973.github.io/xxHash/ , xxHash seems much faster than md5 with comparable quality. There's a Haskell implementation.
I looked at xxHash recently. I can't seem to find benchmarks of it compared with other fast hashes like Blake2.
Let alone blake3, which is 5-6 times as fast as blake2 while still apparently being a cryptographically secure hash.
https://cyan4973.github.io/xxHash/ now includes blake2, and xxh3 is much faster, 28 times as fast.
Would need haskell library, http://hackage.haskell.org/package/xxhash is out of date. It would probably not be hard to make a xxh3 haskell library, but I'm inclined to wait for someone who really wants it.
Debian already has it in libxxhash0.
Interestingly, the ghc RTS uses xxhash and recently updated to xxh3. https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4248 But I don't think that's exposed to haskell code.