Daninet / hash-wasm

Lightning fast hash functions using hand-tuned WebAssembly binaries
https://npmjs.com/package/hash-wasm
Other
881 stars 49 forks source link

Add Adler-32 hash function #19

Closed thenickdude closed 3 years ago

thenickdude commented 3 years ago

Adler-32 is used as a checksum in the rsync protocol and in zlib compression. The algorithm is taken straight from zlib, which has a compatible license (source distributions need to retain the copyright statement, binary distributions don't require any attribution).

The hash-wasm version crushes the performance of the popular NPM package adler-32:

Screen Shot 2021-06-05 at 2 21 42 PM