netudima commented on code in PR #4709:
URL: https://github.com/apache/cassandra/pull/4709#discussion_r3067962616
##########
src/java/org/apache/cassandra/db/ReadCommand.java:
##########
@@ -644,12 +644,15 @@ public Row applyToStatic(Row row)
public Row applyToRow(Row row)
{
boolean hasTombstones = false;
- for (Cell<?> cell : row.cells())
+ if (row.hasDeletion(ReadCommand.this.nowInSec())) // perf
optimization, to avoid iteration if all cells are alive
Review Comment:
yes, good point, thanks
--
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]