Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Incompatible change, Reviewed
Description
In some hashCode() implementation (e.g. Block.hashCode()), the formula has the form
37 * 17 + f(x),
where f( x ) is some function. Adding 37*17 to f( x ) shifts the value of f( x ). It is not effective to do shifting in hash functions. The computation is redundant.
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-5727 Faster, simpler id.hashCode() which does not allocate memory
- Closed