mph icon indicating copy to clipboard operation
mph copied to clipboard

Minimal Perfect Hashing for Go

Results 7 mph issues
Sort by recently updated
recently updated
newest added

A major motivation for using mmap'ed files is whe the data-set does not fit in the memory. Currently, the builder uses a lot of memory. It would be great to...

This library can actually run with a really old Go version, but 1.17 seemed old enough to include most installations.

It seems mph essentially implements a `map[[]byte][]byte`. Is it possible to change the code such that it becomes `map[uint32][]uint8`? Go's bulit-in map has just too much overhead for my application...

It probably must start from 0? one key and value which is at 0 is always missed when using iterator correction: iterator interface is a bit confusing, right pattern of...

``` func TestCHD_Pow2(t *testing.T) { check := func(n int) (err error) { cb := Builder() for i:=0; i

(I apologize if this is out of scope for this library, and for my relatively shallow understanding of MPHs.) Using the FNV hash func and even some simple inputs (e.g.,...

I'm using this to get the byte-for-byte same result if the input is the same, so my rsync-like tool doesn't need to retransmit the data. also switch to `rand.Uint64()` which...