gg_hash 1.1.0
gg_hash: ^1.1.0 copied to clipboard
A simple FNV-1 hash implementation used across multiple projects within our organization.
Changelog #
1.1.0 - 2026-07-05 #
Added #
- Add a ggHash method and a hashJson method to allow to create 128 bit hashes on arbitrary strings and hash JSON files
- Add example code
- Add .gitattributes file
- Add benchmarks and golden checks (
benchmark/)
Changed #
- Improve performance of
fnv1andhashJsonsignificantly while keeping all hashes bit-identical:fnv1no longer copies 8-byte-aligned typed data whose length is not a multiple of 8 and uses specialized loops for lists;hashJsonhashes in a single pass, serializes JSON directly to reusable UTF-8 buffers and uses a built-in, allocation-free SHA-256 - Move the
cryptopackage fromdependenciestodev_dependencies; it is only used in tests now to verify the built-in SHA-256 - Optimize performance using claude