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/25 09:36:00 UTC

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

    [ https://issues.apache.org/jira/browse/CASSANDRA-21294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18076196#comment-18076196 ] 

Dmitry Konstantinov edited comment on CASSANDRA-21294 at 4/25/26 9:35 AM:
--------------------------------------------------------------------------

CI run for trunk: 
* https://pre-ci.cassandra.apache.org/job/cassandra/525/
*  [^CASSANDRA-21294-trunk_ci_summary.htm] 



was (Author: dnk):
CI run for trunk: https://pre-ci.cassandra.apache.org/job/cassandra/525/


> 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
>            Priority: Normal
>             Fix For: 6.x
>
>         Attachments: CASSANDRA-21294-trunk_ci_summary.htm, image-2026-04-10-11-45-29-584.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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|width=800! 



--
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