maedhroz commented on code in PR #3735:
URL: https://github.com/apache/cassandra/pull/3735#discussion_r1878257640
##########
src/java/org/apache/cassandra/db/MultiCBuilder.java:
##########
@@ -193,6 +194,9 @@ public NavigableSet<Clustering<?>> build()
if (clusterings.isEmpty())
return BTreeSet.of(comparator, Clustering.EMPTY);
+ if (clusterings.size() == 1)
Review Comment:
Good idea. In short, this is a very hot path that both read and write paths
run through. Avoiding builder and iterator allocations that would otherwise
happen below is useful.
--
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]