[
https://issues.apache.org/jira/browse/CASSANDRA-9894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14648349#comment-14648349
]
Benedict commented on CASSANDRA-9894:
-------------------------------------
bq. I thought the reason you did it was to have the most compact encoding for
the positive numbers which are going to be more common.
I think those two statements add up to the same thing :)
I'll add a comment explaining the full thought process, as it's actually a
little more subtle to that. The encoding is designed to tend towards a single
byte in the most common cases, and most importantly that it was consistent with
a guaranteed single byte in the most common case (equality).
> Serialize the header only once per message
> ------------------------------------------
>
> Key: CASSANDRA-9894
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9894
> Project: Cassandra
> Issue Type: Sub-task
> Components: Core
> Reporter: Sylvain Lebresne
> Assignee: Benedict
> Fix For: 3.0 beta 1
>
>
> One last improvement I'd like to do on the serialization side is that we
> currently serialize the {{SerializationHeader}} for each partition. That
> header contains the serialized columns in particular and for range queries,
> serializing that for every partition is wasted (note that it's only a problem
> for the messaging protocol as for sstable we only write the header once per
> sstable).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)