[infinispan-issues] [JBoss JIRA] (ISPN-1787) MurmurHash3 performance optimizations

Dan Berindei (JIRA) jira-events at lists.jboss.org
Thu Jan 26 13:33:48 EST 2012


     [ https://issues.jboss.org/browse/ISPN-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Berindei updated ISPN-1787:
-------------------------------

              Status: Pull Request Sent  (was: Open)
    Git Pull Request: https://github.com/infinispan/infinispan/pull/893


I inlined the MurmurHash3_x64_128 method into MurmurHash3_x64_64 and hash(hashCode),
then I removed the extra array allocations.

The resulting hash is still identical to the old methods
                
> MurmurHash3 performance optimizations
> -------------------------------------
>
>                 Key: ISPN-1787
>                 URL: https://issues.jboss.org/browse/ISPN-1787
>             Project: Infinispan
>          Issue Type: Task
>    Affects Versions: 5.1.0.FINAL
>            Reporter: Dan Berindei
>            Assignee: Dan Berindei
>            Priority: Minor
>             Fix For: 5.2.0.ALPHA1
>
>
> MurmurHash3.MurmurHash3_x64_32 creates a long[] but only uses the first element.
> We can also optimize the hash(Object) overload so that it doesn't create a byte array in the general case (a class overriding hashCode).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list