A Swift package for open-addressed sets and dictionaries that use the cuckoo hasing algorithm.
Import the CuckooCollections
module to use two new data structures that feature
constant-time lookups, insertions and removals:
CuckooSet
CuckooDictionary
This cuckoo hashing algorithm uses FNV-1
and FNV-1a
with a 64-bit digest.
The hash function implementation is also open-source, the code is available
here.
This package was last tested on the following platforms:
This project is no longer maintained, and is a read-only archive. The code within is still a working cuckoo hash table implementation that may be useful for reference. The poor time and memory performance of the hash table is the primary cause for discontinued development.
link |
Stars: 0 |
Last commit: 1 year ago |
This pre-release includes internal changes made to the set bump and insertion process. These are mostly for clarity and should offer very slight performance improvements, including reducing the memory size of CuckooSet
.
No code-breaking changes were introduced in this version.
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics