C++ implementation of a fast hash map and hash set using robin hood hashing
The robin-map library is a C++ implementation of a fast hash map and hash set
using open-addressing and linear robin hood hashing with backward shift
deletion to resolve collisions.
Four classes are provided: tsl::robin_map, tsl::robin_set, tsl::robin_pg_map
and tsl::robin_pg_set. The first two are faster and use a power of two growth
policy, the last two use a prime growth policy instead and are able to cope
better with a poor hash function. Use the prime version if there is a chance of
repeating patterns in the lower bits of your hash (e.g. you are storing
pointers with an identity hash function). See GrowthPolicy for details.
A benchmark of tsl::robin_map against other hash maps may be found here. This
page also gives some advices on which hash table structure you should try for
your use case (useful if you are a bit lost with the multiple hash tables
implementations in the tsl namespace).
- Devel package for openSUSE:Factory
-
2
derived packages
- Links to openSUSE:Factory / robin-map
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:libraries:c_c++/robin-map && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
_link | 0000000124 124 Bytes | |
robin-map-1.0.1.tar.gz | 0000069160 67.5 KB | |
robin-map.changes | 0000001862 1.82 KB | |
robin-map.spec | 0000002634 2.57 KB |
Revision 5 (latest revision is 10)
- Update to version 1.0.1: * For the tests, force the usage of the Boost static libraries by setting Boost_USE_STATIC_LIBS to ON in CMake (gh#Tessil/robin-map#50). - Changes from version 1.0: * Add support for efficient serialization. * Remove compilation warnings when -Wshadow flag is set. * Fix USE_STORED_HASH_ON_REHASH to return true when bucket_count is 0, STORE_HASH is true and is_power_of_two_policy::value is true. * Fix CMake warning by specifying a project language before including GNUInstallDirs. * Create a local tsl-robin-mapTargets.cmake (gh#Tessil/robin-map#45).
Comments 0