[
https://issues.apache.org/jira/browse/CASSANDRA-21467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Miklosovic updated CASSANDRA-21467:
------------------------------------------
Fix Version/s: 6.0-alpha2
7.0
(was: 6.x)
(was: 7.x)
> 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.0-alpha2, 7.0
>
> Attachments: CASSANDRA-21467-cassandra-6.0-ci_summary.html,
> CASSANDRA-21467-trunk-ci_summary.html
>
>
> 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]