Jane He created CASSJAVA-68:
-------------------------------
Summary: 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
>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: [email protected]
For additional commands, e-mail: [email protected]