Details
-
Improvement
-
Resolution: Fixed
-
Major
-
5.0.0
Description
Example:
HashTable::unlocked_addNewStoredValue() calculates hash bucket_num from the key.
(int bucket_num = getBucketForHash(itm.getKey().hash()))
But the callers of the functions have calculated the hash bucket before. We could pass it as a param rather than recalculating it.
There maybe many more cases like this in the hash table
Attachments
For Gerrit Dashboard: MB-22513 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
73953,5 | MB-22513: Only calculate hash bucket once | master | ep-engine | Status: MERGED | +2 | +1 |