cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nitsan Wakart (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-11422) Eliminate temporary object[] allocations in ColumnDefinition::hashCode
Date Thu, 24 Mar 2016 09:38:25 GMT
Nitsan Wakart created CASSANDRA-11422:
-----------------------------------------

             Summary: Eliminate temporary object[] allocations in ColumnDefinition::hashCode
                 Key: CASSANDRA-11422
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11422
             Project: Cassandra
          Issue Type: Improvement
          Components: Core
            Reporter: Nitsan Wakart


ColumnDefinition::hashCode currently calls Objects.hashCode(Object...)
This triggers the allocation of a short lived Object[] which is not eliminated by EscapeAnalysis.
I have implemented a fix by inlining the hashcode logic and also added a caching hashcode
field. This improved performance on the read workload.
Fix is available here:
https://github.com/nitsanw/cassandra/tree/objects-hashcode-fix



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message