[ 
https://issues.apache.org/jira/browse/HBASE-849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrzej Bialecki  updated HBASE-849:
------------------------------------

    Attachment: TestHash.java

This simple test calculates the hash a number of times (e.g. 100 mln), both 
using the patched version and the old version. Additionally, it checks whether 
output values are equal.

Results show a ~3 times speed improvement:

Speed JenkinsHash:
 - 49578 ms
Speed JenkinsHashOld:
 - 155266 ms
Regression...
  - ok.

> Speed improvement in JenkinsHash
> --------------------------------
>
>                 Key: HBASE-849
>                 URL: https://issues.apache.org/jira/browse/HBASE-849
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 0.2.1
>            Reporter: Andrzej Bialecki 
>             Fix For: 0.2.1
>
>         Attachments: jenkins.patch, TestHash.java
>
>
> The JenkinsHash implementation frequently uses a pattern Long.valueOf( 
> ..expr..). This is costly, because each time the JVM implicitly creates a new 
> Long object.

-- 
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