package grenier

  1. Overview
  2. Docs
A collection of various algorithms in OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

grenier-0.17.tbz
sha256=adce547fae9b5648d902d91173bb787466a197f81610b76757424ab33980e625
sha512=dccce42254660831fbd45129718ce01d2a4fcf10d05fa40f10eb3be4e5c94300af7235cc88c76b2e5aff7a02b8a1e8e6150d2d3376d8b630911d1dc6247b7df6

doc/grenier.jmphash/Jmphash/index.html

Module JmphashSource

An implementation of "A Fast, Minimal Memory, Consistent Hash Algorithm"

Sourceval host : hosts:int -> int64 -> int

host ~hosts key tells you on which host, between 0 and hosts-1, you should store value indexed by key.