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 2024/12/23 09:59:00 UTC

[jira] [Created] (CASSANDRA-20162) Avoid memory allocation on NativeCell.valueSize() and NativeClustering.dataSize()

Dmitry Konstantinov created CASSANDRA-20162:
-----------------------------------------------

             Summary: Avoid memory allocation on NativeCell.valueSize() and NativeClustering.dataSize()
                 Key: CASSANDRA-20162
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20162
             Project: Apache Cassandra
          Issue Type: Improvement
          Components: Local/Memtable
            Reporter: Dmitry Konstantinov
            Assignee: Dmitry Konstantinov
         Attachments: image-2024-12-23-09-53-27-226.png

Currently for memtable_allocation_type: offheap_objects we allocate memory to calculate dataSize() during a write to a memtable because we use default implementation of dataSize() which retrieves an object using value() method.
!image-2024-12-23-09-53-27-226.png! 
To avoid such memory allocation we can calculate data size directly for NativeCell and NativeClustering



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