proxy.golang.org : github.com/opencoff/go-mph
Package mph implements two different perfect hash functions for large data sets: mph exposes a convenient way to serialize keys and values OR just keys into an on-disk single-file database. This serialized MPH DB is useful in situations where the reading from such a "constant" DB is much more frequent compared to updates to the DB. The primary user interface for this package is via the 'DBWriter' and 'DBReader' objects. Each objected added to the MPH is a <key, value> pair. The key is identified by a uint64 value - most commonly obtained by hashing a user specific object. The caller must ensure that they use a good hash function (eg siphash) that produces a random distribution of the keys. The 'DBWriter'
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/opencoff/go-mph
License: GPL-2.0
Latest release: 2 days ago
First release: almost 4 years ago
Namespace: github.com/opencoff
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 2 days ago