digest-pure

Pure hash functions for bytestrings

http://github.com/danieldk/digest-pure

Latest on Hackage:0.0.3

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

LicenseRef-OtherLicense licensed and maintained by Daniël de Kok

This package provides pure hash functions for pure and lazy bytestrings, implementing the same interface as the digest package.

For efficiency, use the digest package, which provides FFI bindings to efficient code from zlib, instead.

Performance compared to Data.Digest on a Mac Mini 2010, 2.4GHz Core 2 Duo, using Data.ByteString.Lazy.ByteString:

  • Data.Digest.Pure.Adler32: 380 MB/s

  • Data.Digest.Adler32: 4906 MB/s

  • Data.Digest.Pure.CRC32: 232 MB/s

  • Data.Digest.CRC32: 774 MB/s