package
module
Version:
v0.0.0-...-81a8625
Opens a new window with list of versions in this module.
Published: Dec 17, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
README
¶
go-mph: minimal perfect hash functions
godoc: https://godoc.org/github.com/dgryski/go-mph
Documentation
¶
Package mph implements a hash/displace minimal perfect hash function.
type Table struct {
Values []int32
Seeds []int32
}
Table stores the values for the hash function
New constructs a minimal perfect hash function for the set of keys which returns the index of item in the keys array.
Query looks up an entry in the table and return the index.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.