sfhash 0.1.1

The `Hsieh Hash` or `SuperFastHash` function
Documentation
  • Coverage
  • 66.67%
    2 out of 3 items documented1 out of 2 items with examples
  • Size
  • Source code size: 31.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 254.51 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Xiphoseer/sfhash
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Xiphoseer

sfhash

This crate contains the SuperFastHash (aka Hsieh Hash) function presented at http://www.azillionmonkeys.com/qed/hash.html

use sfhash::digest;

let hash = digest("Hello World!".as_bytes());
assert_eq!(hash, 1774740540);

The hash value is initialized with the lenght of the input, so the algorithm cannot be used incrementally.