package xxhash
import "github.com/cespare/xxhash"
Package xxhash implements the 64-bit variant of xxHash (XXH64) as described at http://cyan4973.github.io/xxHash/.
Index ¶
Functions ¶
func New ¶
New creates a new hash.Hash64 that implements the 64-bit xxHash algorithm.
func Sum64 ¶
Sum64 computes the 64-bit xxHash digest of b.
func Sum64String ¶
Sum64String computes the 64-bit xxHash digest of s. It may be faster than Sum64([]byte(s)) by avoiding a copy.
TODO(caleb): Consider removing this if an optimization is ever added to make it unnecessary: https://golang.org/issue/2205.
TODO(caleb): We still have a function call; we could instead write Go/asm copies of Sum64 for strings to squeeze out a bit more speed.
Source Files ¶
rotate19.go xxhash.go xxhash_other.go xxhash_unsafe.go
Directories ¶
Path | Synopsis |
---|---|
xxhsum |
- Version
- v1.1.0 (latest)
- Published
- Sep 10, 2018
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 1 week ago –
Tools for package owners.