hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-3383) Redundant computation in hashCode() implemenation
Date Tue, 13 May 2008 21:37:55 GMT
Redundant computation in hashCode() implemenation

                 Key: HADOOP-3383
                 URL: https://issues.apache.org/jira/browse/HADOOP-3383
             Project: Hadoop Core
          Issue Type: Improvement
            Reporter: Tsz Wo (Nicholas), SZE

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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message