cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-9499) Introduce writeVInt method to DataOutputStreamPlus
Date Tue, 16 Jun 2015 11:15:01 GMT

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

Sylvain Lebresne commented on CASSANDRA-9499:
---------------------------------------------

bq. Could you give an example of where this would be helpful?

I assumed that knowing a given integer can't be negative could lead to more efficient encoding
(either one that shoves more (positive) values in less bytes or one that is more efficient
out of having less cases to consider). That said, I haven't really look at our vint encoding
so if neither is true (or is negligible) then lets forget about it. But just to be clear,
I'm not talking of dealing with unsigned ints/longs (hence my quotes on unsigned, it's the
wrong word to use), just of potentially optimizing the encoding on the assumption the value
is positive (as we have many case where we'll know it's the case).


> Introduce writeVInt method to DataOutputStreamPlus
> --------------------------------------------------
>
>                 Key: CASSANDRA-9499
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9499
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Benedict
>            Assignee: Ariel Weisberg
>            Priority: Minor
>             Fix For: 3.0 beta 1
>
>
> CASSANDRA-8099 really could do with a writeVInt method, for both fixing CASSANDRA-9498
but also efficiently encoding timestamp/deletion deltas. It should be possible to make an
especially efficient implementation against BufferedDataOutputStreamPlus.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message