mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
Improve subtable selection in parallel_* maps by using higher bits of the key, as suggested by @fowles - issue #53
This commit is contained in:
Vendored
+1
-1
@@ -3215,7 +3215,7 @@ protected:
|
||||
}
|
||||
|
||||
static size_t subidx(size_t hashval) {
|
||||
return (hashval ^ (hashval >> N)) & mask;
|
||||
return ((hashval >> 8) ^ (hashval >> 16) ^ (hashval >> 24)) & mask;
|
||||
}
|
||||
|
||||
template <class K>
|
||||
|
||||
Reference in New Issue
Block a user