maedhroz commented on code in PR #4104:
URL: https://github.com/apache/cassandra/pull/4104#discussion_r2052908116
##########
src/java/org/apache/cassandra/db/filter/RowFilter.java:
##########
@@ -172,15 +173,21 @@ public boolean isStrict()
*/
public boolean isMutableIntersection()
{
- int count = 0;
+ IntHashSet columns = null;
for (Expression e : expressions)
{
if (e.column.isStatic() && expressions.size() > 1)
return true;
if (!e.column.isPrimaryKeyColumn())
- if (++count > 1)
+ {
+ if (columns == null)
+ columns = new IntHashSet(expressions.size(), 0.9f);
Review Comment:
Reverted to default load factor. It doesn't actually look like the capacity
can be set below 8 anyway. (My initial concern was just not wanting to set the
capacity at construction and then immediately have to resize the array.)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]