Skip to content

[CASSANDRA-21399][trunk] Avoid megamorphic call overhead at org.apache.cassandra.io.util.RandomAccessReader#current#4839

Open
netudima wants to merge 1 commit into
apache:trunkfrom
netudima:CASSANDRA-21399-trunk
Open

[CASSANDRA-21399][trunk] Avoid megamorphic call overhead at org.apache.cassandra.io.util.RandomAccessReader#current#4839
netudima wants to merge 1 commit into
apache:trunkfrom
netudima:CASSANDRA-21399-trunk

Conversation

@netudima
Copy link
Copy Markdown
Contributor

No description provided.

…mAccessReader#current

patch by Dmitry Konstantinov; reviewed by TBD for CASSANDRA-21399
@netudima netudima force-pushed the CASSANDRA-21399-trunk branch from e593d57 to 28788cc Compare May 24, 2026 14:20

final Rebufferer rebufferer;
protected BufferHolder bufferHolder = Rebufferer.EMPTY;
private BufferHolder bufferHolder = Rebufferer.EMPTY;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made it private to avoid modifying the value in subclasses without updating the paired bufferHolderOffset value

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

document this in the code explicitly, not just by commenting here

@smiklosovic smiklosovic self-requested a review May 26, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants