[ 
https://issues.apache.org/jira/browse/CASSANDRA-17209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Lerer updated CASSANDRA-17209:
---------------------------------------
    Summary: Avoid unecessary array allocations and initializations in 
RequestValidations  (was: Avoid unecessary array allocation and initialization 
in RequestValidations)

> Avoid unecessary array allocations and initializations in RequestValidations
> ----------------------------------------------------------------------------
>
>                 Key: CASSANDRA-17209
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17209
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: CQL/Interpreter
>            Reporter: Benjamin Lerer
>            Assignee: Benjamin Lerer
>            Priority: Normal
>
> {{RequestValidations}} methods used extensively varargs. As the array 
> creation is necessary only when the check fail we endup creating most of the 
> time unecessary array. This can easily be avoided by overloading the 
> different methods with a number of message argument from zero to three. 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to