[ 
https://issues.apache.org/jira/browse/CASSANDRA-21347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18077911#comment-18077911
 ] 

Francisco Guerrero edited comment on CASSANDRA-21347 at 5/3/26 5:56 PM:
------------------------------------------------------------------------

+1 thanks for the patch


was (Author: frankgh):
+1 looks good to me

> Avoid allocation by getFunctions in SelectStatement.authorize 
> --------------------------------------------------------------
>
>                 Key: CASSANDRA-21347
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21347
>             Project: Apache Cassandra
>          Issue Type: Improvement
>          Components: CQL/Interpreter
>            Reporter: Dmitry Konstantinov
>            Assignee: Dmitry Konstantinov
>            Priority: Normal
>             Fix For: 6.x, 7.x
>
>         Attachments: image-2026-05-03-18-13-26-558.png, may3_alloc.html
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> getFunctions costs ~ 0.8% of allocations in a select a 10 row partition test
>  !image-2026-05-03-18-13-26-558.png|width=700! 
> getFunctions can be pre-calculated and re-used (same idea was used in 
> CASSANDRA-20167 for ModificationStatement), also it is empty quite frequently



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to