Improve subtable selection in parallel_* maps by using higher bits of the key, as suggested by @fowles - issue #53

This commit is contained in:
greg
2020-07-09 14:46:23 -04:00
parent 882162cc2a
commit afe1ded1ae
+1 -1
View File
@@ -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>