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

Dmitry Konstantinov updated CASSANDRA-21058:
--------------------------------------------
    Description: 
To reduce memory allocation we can replace byte[] value within MD5Digest with 2 
long values. It also reduces a bit computation costs by avoiding extra 
dereferences and make prepared statement cache keys more compact.

1.15% of overall allocations for a batch insert workload (same test as in 
CASSANDRA-20226): 
 !async_profiler_alloc_before.png|width=540! 

  was:
To reduce memory allocation we can replace byte[] value within MD5Digest with 2 
long values. It also reduces a bit computation costs by avoiding extra 
dereferences and make prepared statement cache keys more compact.

 !async_profiler_alloc_before.png! 


> Replace byte[] value with 2 longs in MD5Digest
> ----------------------------------------------
>
>                 Key: CASSANDRA-21058
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21058
>             Project: Apache Cassandra
>          Issue Type: Improvement
>          Components: CQL/Interpreter
>            Reporter: Dmitry Konstantinov
>            Assignee: Dmitry Konstantinov
>            Priority: Normal
>         Attachments: async_profiler_alloc_before.png
>
>
> To reduce memory allocation we can replace byte[] value within MD5Digest with 
> 2 long values. It also reduces a bit computation costs by avoiding extra 
> dereferences and make prepared statement cache keys more compact.
> 1.15% of overall allocations for a batch insert workload (same test as in 
> CASSANDRA-20226): 
>  !async_profiler_alloc_before.png|width=540! 



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