Skip to content

[CASSANDRA-21362][trunk] Avoid ByteBuffer wrapping in cql3.selection.Selector.InputRow to reduce memory allocation rate#4816

Closed
netudima wants to merge 1 commit into
apache:trunkfrom
netudima:CASSANDRA-21362-trunk
Closed

[CASSANDRA-21362][trunk] Avoid ByteBuffer wrapping in cql3.selection.Selector.InputRow to reduce memory allocation rate#4816
netudima wants to merge 1 commit into
apache:trunkfrom
netudima:CASSANDRA-21362-trunk

Conversation

@netudima
Copy link
Copy Markdown
Contributor

Current ReadCommand logic returns ArrayCell values, so when we retrieve a cell value as a ByteBuffer we allocate ByteBuffer instances

patch by Dmitry Konstantinov; reviewed by TBD for CASSANDRA-21362

@netudima netudima force-pushed the CASSANDRA-21362-trunk branch from 728c131 to 86b6677 Compare June 2, 2026 19:19
Comment thread test/distributed/org/apache/cassandra/distributed/impl/RowUtil.java Outdated
Copy link
Copy Markdown
Contributor

@frankgh frankgh left a comment

Choose a reason for hiding this comment

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

+1 looks good to me

…ce memory allocation rate

Current ReadCommand logic returns ArrayCell values, so when we retrieve a cell value as a ByteBuffer we allocate ByteBuffer instances

patch by Dmitry Konstantinov; reviewed by Francisco Guerrero for CASSANDRA-21362
@netudima netudima force-pushed the CASSANDRA-21362-trunk branch from b57b155 to 0a36ada Compare June 4, 2026 14:31
@netudima
Copy link
Copy Markdown
Contributor Author

netudima commented Jun 4, 2026

Merged as 0d21606

@netudima netudima closed this Jun 4, 2026
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