You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Dmitry Konstantinov (Jira)" <ji...@apache.org> on 2026/04/10 10:46:00 UTC

[jira] [Created] (CASSANDRA-21294) Avoid CompactionOptions parsing for every read by WithoutPurgeableTombstones

Dmitry Konstantinov created CASSANDRA-21294:
-----------------------------------------------

             Summary: Avoid CompactionOptions parsing for every read by WithoutPurgeableTombstones
                 Key: CASSANDRA-21294
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21294
             Project: Apache Cassandra
          Issue Type: Improvement
          Components: Local/Other
            Reporter: Dmitry Konstantinov
            Assignee: Dmitry Konstantinov
         Attachments: image-2026-04-10-11-45-29-584.png

For every read request as a part of org.apache.cassandra.db.ReadCommand#executeLocally logic we parse CompactionOptions in withoutPurgeableTombstones:
{code}
public boolean onlyPurgeRepairedTombstones()
    {
        return Boolean.parseBoolean(params.options().get(AbstractCompactionStrategy.ONLY_PURGE_REPAIRED_TOMBSTONES));
    }
{code}
It costs us ~0.2% CPU 
we can save the parsed value into CompactionOptions to avoid it.
 !image-2026-04-10-11-45-29-584.png! 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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