[
https://issues.apache.org/jira/browse/CASSANDRA-21467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18099432#comment-18099432
]
Stefan Miklosovic commented on CASSANDRA-21467:
-----------------------------------------------
I had to update a test in (1) as we started to reference more classes. This is
safe to do, one is interface, another is just some kind-of-a-pojo.
(1)
https://github.com/apache/cassandra/compare/trunk...smiklosovic:cassandra:CASSANDRA-21467-6.0?expand=1
> Reduce allocations in DefaultQueryOptions
> -----------------------------------------
>
> Key: CASSANDRA-21467
> URL: https://issues.apache.org/jira/browse/CASSANDRA-21467
> Project: Apache Cassandra
> Issue Type: Improvement
> Components: Local/Other
> Reporter: Francisco Guerrero
> Assignee: Francisco Guerrero
> Priority: Low
> Fix For: 6.x, 7.x
>
>
> In
> {{org.apache.cassandra.cql3.QueryOptions.DefaultQueryOptions#readThresholds}}
> we always create an instance of {{DefaultReadThresholds}} when read
> thresholds are enabled. We can avoid the initialization by instead having a
> static instance of {{DefaultReadThresholds}} and always reading the values
> from {{DatabaseDescriptor}}. The estimated savings are ~32 bytes per request.
> Every request when thresholds are enabled. The proposed solution is mirroring
> the existing behavior when read thresholds are disabled.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]