You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Nitsan Wakart (JIRA)" <ji...@apache.org> on 2016/03/24 10:38:25 UTC
[jira] [Created] (CASSANDRA-11422) Eliminate temporary object[]
allocations in ColumnDefinition::hashCode
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)