cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stu Hood (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-4152) cache the hashcode of DecoratedKey as it is immutable
Date Sat, 14 Apr 2012 06:22:22 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-4152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254006#comment-13254006
] 

Stu Hood commented on CASSANDRA-4152:
-------------------------------------

Since I'm sure someone else will ask: "What did the benchmark look like?"
                
> cache the hashcode of DecoratedKey as it is immutable
> -----------------------------------------------------
>
>                 Key: CASSANDRA-4152
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4152
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Dave Brosius
>            Priority: Trivial
>         Attachments: cache_decoratedkey_hash.diff
>
>
> cache the hashcode of the DecoratedKey on first hashCode() call. DecoratedKey is immutable
so no need to run thru all ByteBuffer bytes of the key and do hashcode math. 
> applied to trunk.

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

        

Mime
View raw message