[ 
https://issues.apache.org/jira/browse/CASSJAVA-68?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bret McGuire updated CASSJAVA-68:
---------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Triage Needed)

> Improve DefaultCodecRegistry.CacheKey#hashCode() to eliminate Object[] 
> allocation
> ---------------------------------------------------------------------------------
>
>                 Key: CASSJAVA-68
>                 URL: https://issues.apache.org/jira/browse/CASSJAVA-68
>             Project: Apache Cassandra Java driver
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jane He
>            Priority: Normal
>             Fix For: 4.19.1
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> From [~tatu-at-datastax] : Profiling showed significant {{Object[]}} 
> allocations at {{DefaultCodecRegistry.CacheKey#hashCode()}}  (since 
> {{Object.hashCode(Object... args)}} takes varargs which gets converted into 
> {{{}Object[]{}}}) so figured out it's worth improving upon.
>  
> Also, another [ticket|https://datastax-oss.atlassian.net/browse/JAVA-3073] 
> and [PR|https://github.com/apache/cassandra-java-driver/pull/1644] is about 
> `Objects.hash` performance issue discovered by profiling. A quick text search 
> shows that we have 60+ `Objects.hash` usage in our codebase. Maybe we should 
> consider fixing other `Objects.hash` usages, too.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to