[infinispan-issues] [JBoss JIRA] (ISPN-8481) Lazily calculate hashCode for WrappedByteArray

William Burns (JIRA) issues at jboss.org
Thu Nov 2 14:55:00 EDT 2017


    [ https://issues.jboss.org/browse/ISPN-8481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13485352#comment-13485352 ] 

William Burns commented on ISPN-8481:
-------------------------------------

Here is the JMH run from this

https://gist.github.com/wburns/3744e3b2210466102378948cbb2105f0

It isn't much better if at all really compared to https://issues.jboss.org/browse/ISPN-8454?focusedCommentId=13485334&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-13485334 but it should help when the entries are larger. The largest value here was only 1000 bytes

> Lazily calculate hashCode for WrappedByteArray
> ----------------------------------------------
>
>                 Key: ISPN-8481
>                 URL: https://issues.jboss.org/browse/ISPN-8481
>             Project: Infinispan
>          Issue Type: Sub-task
>            Reporter: William Burns
>            Assignee: William Burns
>
> We don't always use the hashCode for a WrappedByteArray. By always calculating it this adds additional cost, we should see if we can change this safely.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list