[
https://issues.apache.org/jira/browse/CASSANDRA-21402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmitry Konstantinov updated CASSANDRA-21402:
--------------------------------------------
Fix Version/s: 6.0-alpha2
7.0
(was: 6.x)
(was: 7.x)
Source Control Link:
https://github.com/apache/cassandra/commit/91980589866f3425f1f3c64a959be1779be73618
Resolution: Fixed
Status: Resolved (was: Ready to Commit)
> Avoid type lookup in SerializationHeader#getType if schema and SSTable are
> aligned
> ----------------------------------------------------------------------------------
>
> Key: CASSANDRA-21402
> URL: https://issues.apache.org/jira/browse/CASSANDRA-21402
> Project: Apache Cassandra
> Issue Type: Improvement
> Components: Local/SSTable
> Reporter: Dmitry Konstantinov
> Assignee: Dmitry Konstantinov
> Priority: Normal
> Fix For: 6.0-alpha2, 7.0
>
> Attachments: CASSANDRA-21402-trunk_ci_summary.htm.zip,
> CASSANDRA-21402_after_cpu.html, CASSANDRA-21402_before_cpu.html, after.png,
> before.png, image-2026-05-24-16-36-12-733.png
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Cell.Serializer#deserialize lookup an actual type for every cell using
> SerializationHeader#getType, it is ~27% of a cell deserialization CPU cost
> and ~5% of total CPU cost for a read scenario (10 row partition select, CPU
> bound)
> if schema and SSTable are aligned we can avoid this lookup (we can go further
> and avoid it even if they are not aligned but it looks more complicated from
> analysis or/and implementation point of view)
> !image-2026-05-24-16-36-12-733.png|width=800!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]