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/05/10 15:56:00 UTC
[jira] [Created] (CASSANDRA-21362) Avoid ByteBuffer wrapping in cql3.selection.Selector.InputRow
Dmitry Konstantinov created CASSANDRA-21362:
-----------------------------------------------
Summary: Avoid ByteBuffer wrapping in cql3.selection.Selector.InputRow
Key: CASSANDRA-21362
URL: https://issues.apache.org/jira/browse/CASSANDRA-21362
Project: Apache Cassandra
Issue Type: Improvement
Components: Consistency/Coordination
Reporter: Dmitry Konstantinov
Attachments: image-2026-05-10-16-52-05-513.png
The logic is responsible for 10.7% of allocations in 10 row select test (if CASSANDRA-21354 changes are already applied)
We read data from Memtables and SSTables as byte arrays (ArrayCell, ArrayClustering) but then to serialize them into CQL response we convert them into ByteBuffer, so for every value we have to allocate a wrapping ByteBuffer:
!image-2026-05-10-16-52-05-513.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