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

Stefan Miklosovic updated CASSANDRA-20816:
------------------------------------------
    Status: Requires Testing  (was: Review In Progress)

> Optimize MessagingService.getVersionOrdinal
> -------------------------------------------
>
>                 Key: CASSANDRA-20816
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20816
>             Project: Apache Cassandra
>          Issue Type: Improvement
>          Components: Messaging/Internode
>            Reporter: Dmitry Konstantinov
>            Assignee: Dmitry Konstantinov
>            Priority: Normal
>             Fix For: 5.x
>
>         Attachments: 5.1_cpu.html, image-2025-08-04-19-55-41-878.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Based on CPU profile we spend about 0.41% of CPU in 
> MessagingService.getVersionOrdinal logic during a basic plain write stress 
> test.
> The map lookup (with an implicit auto-boxing) can be replaced with a plain 
> arithmetic operation. 
> A unit test can be used to ensure that the assumption about serialization 
> version incrementing for new versions is correct.
>  !image-2025-08-04-19-55-41-878.png|width=700! 
>  [^5.1_cpu.html] 



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

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to