[
https://issues.apache.org/jira/browse/CASSANDRA-9499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14593500#comment-14593500
]
Benedict commented on CASSANDRA-9499:
-------------------------------------
and, just riffing here: it looks to me like it might be better to
{{prepareReadPrimitive(1)}} and grab our {{firstByte}} before we do anything
else, since that permits us to short-circuit more quickly.
It would also be nice to simply generalise {{readMinimum}}, to choose when it
throws EOF. We don't buy much from grabbing the limit inline, I don't think.
> 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)