[
https://issues.apache.org/jira/browse/CASSANDRA-20816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmitry Konstantinov updated CASSANDRA-20816:
--------------------------------------------
Fix Version/s: 5.1
(was: 5.x)
Source Control Link:
https://github.com/apache/cassandra/commit/7546d9e895dd0ac86a3f5a27fdee45d3c111760c
Resolution: Fixed
Status: Resolved (was: Ready to Commit)
> 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.1
>
> Attachments: 5.1_cpu.html, ci_summary_trunk_ 20816.htm,
> ci_summary_trunk_ 20816_v2.htm, image-2025-08-04-19-55-41-878.png,
> results_details_trunk_ 20816.tar.xz, results_details_trunk_ 20816_v2.tar.xz
>
> 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: [email protected]
For additional commands, e-mail: [email protected]