[
https://issues.apache.org/jira/browse/CASSANDRA-21399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18084152#comment-18084152
]
Dmitry Konstantinov commented on CASSANDRA-21399:
-------------------------------------------------
same story is about fileLength, in total 1.4% of CPU
!isEOF_cpu.png!
> Megamorphic call overhead at
> org.apache.cassandra.io.util.RandomAccessReader#current
> ------------------------------------------------------------------------------------
>
> Key: CASSANDRA-21399
> URL: https://issues.apache.org/jira/browse/CASSANDRA-21399
> Project: Apache Cassandra
> Issue Type: Improvement
> Components: Local/SSTable
> Reporter: Dmitry Konstantinov
> Assignee: Dmitry Konstantinov
> Priority: Normal
> Fix For: 6.x, 7.x
>
> Attachments: image-2026-05-23-16-17-07-684.png, isEOF_cpu.png
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 0.9% of overall CPU in profile is spent in
> org.apache.cassandra.io.util.RandomAccessReader#current
> when we do a polymorphic call of
> org.apache.cassandra.io.util.Rebufferer.BufferHolder#offset
> we can avoid it by caching the offset value for the current block on
> RandomAccessReader level.
> !image-2026-05-23-16-17-07-684.png|width=600!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]