[ 
https://issues.apache.org/jira/browse/HDFS-288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752110#action_12752110
 ] 

Hudson commented on HDFS-288:
-----------------------------

Integrated in Hadoop-Hdfs-trunk-Commit #16 (See 
[http://hudson.zones.apache.org/hudson/job/Hadoop-Hdfs-trunk-Commit/16/])
    . Redundant computation in hashCode() implementation. Contributed by Tsz Wo 
(Nicholas), SZE.


> Redundant computation in hashCode() implemenation
> -------------------------------------------------
>
>                 Key: HDFS-288
>                 URL: https://issues.apache.org/jira/browse/HDFS-288
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Tsz Wo (Nicholas), SZE
>             Fix For: 0.21.0
>
>         Attachments: h288_20090820.patch
>
>
> In some hashCode() implementation (e.g. Block.hashCode()), the formula has 
> the form
> {noformat}
> 37 * 17 + f(x),
> {noformat}
> 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.

Reply via email to