William Dillon c37b14540e updating tests + benchmark. found strings to be marginally faster (12500 ns/op vs []byte at ~15000 ns/op) | 3 years ago | |
---|---|---|
LICENSE.TXT | 3 years ago | |
README.md | 3 years ago | |
go.mod | 3 years ago | |
mishmash.go | 3 years ago | |
mishmash_test.go | 3 years ago |
this is a non-cryptographic hash optimized for short strings.
.003% collision rate on 326K entries during testing
adapted from CodeDweller/mishmash
to use: use the Mishmash function. If you’re in need of a second hash use Engine instead, which will return the accumulator. You can use the MishmashAccumulator function to mishmash your accumulator, and could also feed that accumulator back into Mishmash to double hash.