You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "clohfink (via GitHub)" <gi...@apache.org> on 2025/01/02 18:02:53 UTC

Re: [PR] [CASSANDRA-20167][5.0] Reduce memory allocations in miscellaneous places along write path [cassandra]

clohfink commented on code in PR #3761:
URL: https://github.com/apache/cassandra/pull/3761#discussion_r1901128886


##########
src/java/org/apache/cassandra/cql3/CQLStatement.java:
##########
@@ -32,9 +34,9 @@ public interface CQLStatement
     /**
      * Returns all bind variables for the statement
      */
-    default List<ColumnSpecification> getBindVariables()
+    default ImmutableList<ColumnSpecification> getBindVariables()
     {
-        return Collections.emptyList();

Review Comment:
   Why switching this to immutable list? emptyList() would have same allocation profile right?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org