[ 
https://issues.apache.org/jira/browse/CASSANDRA-20162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitry Konstantinov updated CASSANDRA-20162:
--------------------------------------------
    Description: 
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.
To avoid such memory allocation we can calculate data size directly for 
NativeCell and NativeClustering

!image-2024-12-23-09-53-27-226.png! 

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


> 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
>            Priority: Normal
>             Fix For: 5.0.x, 5.1
>
>         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.
> To avoid such memory allocation we can calculate data size directly for 
> NativeCell and NativeClustering
> !image-2024-12-23-09-53-27-226.png! 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to