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