[ 
https://issues.apache.org/jira/browse/CASSANDRA-3024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13084437#comment-13084437
 ] 

Jonathan Ellis commented on CASSANDRA-3024:
-------------------------------------------

We can borrow the vint/vlong implementation from 
http://hadoop.apache.org/common/docs/current/api/org/apache/hadoop/io/WritableUtils.html.

The tricky part: these are used in the Messages as well.  Either we need to 
version new Message serialization, or we need to keep Message (body) 
serialization on the old format and keep the new one for sstables.

> sstable varint encoding
> -----------------------
>
>                 Key: CASSANDRA-3024
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3024
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>            Priority: Minor
>             Fix For: 1.0
>
>
> We could save some sstable space by encoding longs and ints as vlong and 
> vint, respectively.  (Probably most "short" lengths would be better as vint 
> as well.)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to