[ https://issues.apache.org/jira/browse/CASSANDRA-20816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dmitry Konstantinov updated CASSANDRA-20816: -------------------------------------------- Attachment: ci_summary_trunk_ 20816.htm results_details_trunk_ 20816.tar.xz > 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, ci_summary_trunk_ 20816.htm, > image-2025-08-04-19-55-41-878.png, results_details_trunk_ 20816.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: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org