[
https://issues.apache.org/jira/browse/CASSANDRA-21467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18099465#comment-18099465
]
Francisco Guerrero commented on CASSANDRA-21467:
------------------------------------------------
CI Results:
|[Cassandra
6.0|https://github.com/frankgh/cassandra/tree/CASSANDRA-21467-cassandra-6.0]|CI|
|[Trunk|https://github.com/frankgh/cassandra/tree/CASSANDRA-21467]|CI|
> 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]