package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Aug 9, 2017
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 5
Opens a new window with list of known importers.
README
¶
fnv
Package fnv implements allocation-free 32 and 64 bit FNV-1 hash variants.
% go test -bench=. -benchmem
BenchmarkHash32a-4 300000000 4.85 ns/op 0 B/op 0 allocs/op
BenchmarkHash32-4 300000000 4.78 ns/op 0 B/op 0 allocs/op
BenchmarkHash64a-4 300000000 6.01 ns/op 0 B/op 0 allocs/op
BenchmarkHash64-4 300000000 5.18 ns/op 0 B/op 0 allocs/op
Documentation
¶
Package fnv implements allocation-free
32 and 64 bit FNV-1 hash variants.
Hash32 takes a string and
returns a 32 bit FNV-1.
Hash32a takes a string and
returns a 32 bit FNV-1a.
Hash64 takes a string and
returns a 64 bit FNV-1.
Hash64a takes a string and
returns a 64 bit FNV-1a.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.