BSD-3-Clause licensed by Henri Verroken
Maintained by Bodigrim
This version can be pinned in stack with:xxhash-ffi-0.3@sha256:3fe4acaa60c58af35de491c8bd9a24f9e6ead495f5736fb17d70384b693eac1e,2602

Module documentation for 0.3

xxhash-ffi

Hackage Stackage Nightly Stackage LTS

Haskell bindings and high-level helpers for xxHash family of extremely fast non-cryptographic hash functions.

Benchmarks against hashable-1.4.3.0 on x86_64:

10B
  Data.Digest.XXHash.FFI.XXH3:
    20.2 ns ± 692 ps
  Data.Hashable:
    20.3 ns ± 722 ps
1kB
  Data.Digest.XXHash.FFI.XXH3:
    80.8 ns ± 2.0 ns
  Data.Hashable:
    1.27 μs ±  16 ns
4kB
  Data.Digest.XXHash.FFI.XXH3:
    236  ns ± 7.9 ns
  Data.Hashable:
    5.09 μs ± 135 ns
1MB
  Data.Digest.XXHash.FFI.XXH3:
    138  μs ± 3.4 μs
  Data.Hashable:
    3.19 ms ±  60 μs

Benchmarks against hashable-1.4.3.0 on aarch64:

10B
  Data.Digest.XXHash.FFI.XXH3:
    10.2 ns ± 208 ps
  Data.Hashable:
    12.1 ns ± 404 ps
1kB
  Data.Digest.XXHash.FFI.XXH3:
    71.7 ns ± 1.8 ns
  Data.Hashable:
    1.14 μs ±  27 ns
4kB
  Data.Digest.XXHash.FFI.XXH3:
    289  ns ± 7.0 ns
  Data.Hashable:
    4.71 μs ± 187 ns
1MB
  Data.Digest.XXHash.FFI.XXH3:
    175  μs ± 6.9 μs
  Data.Hashable:
    2.87 ms ± 108 μs

Changes

0.3

  • Update bundled xxhash C library to 0.8.2.
  • Add FFI bindings for XXH3 family of hash functions.
  • Add newtype XXH3 and instance Hashable for it.
  • Deprecate class XXHash, please use XXH3-based API instead.