VictoriaMetrics/vendor/github.com/lithammer/go-jump-consistent-hash
2019-05-23 00:25:38 +03:00
..
.travis.yml all: open-sourcing cluster version 2019-05-23 00:25:38 +03:00
doc.go all: open-sourcing cluster version 2019-05-23 00:25:38 +03:00
jump.go all: open-sourcing cluster version 2019-05-23 00:25:38 +03:00
LICENSE all: open-sourcing cluster version 2019-05-23 00:25:38 +03:00
README.md all: open-sourcing cluster version 2019-05-23 00:25:38 +03:00

Jump Consistent Hash

Build Status Godoc

Go implementation of the jump consistent hash algorithm[1] by John Lamping and Eric Veach.

[1] http://arxiv.org/pdf/1406.2294v1.pdf

Usage

import jump "github.com/renstrom/go-jump-consistent-hash"

func main() {
    jump.Hash(256, 1024)  // 520
}

License

MIT