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

Ariel Weisberg commented on CASSANDRA-9499:
-------------------------------------------

Unless we store the buffer in a container with a nullable field it will entail 
hitting the thread-local twice. Maybe if assertions are enabled?

Regarding the OHC changes. I can make get and put direct, but I can't make 
replace, or putIfAbsent direct since OHC doesn't have methods for that. The 
value serializer will always contain the adapters because one has to be 
provided for construction, but they won't be used if the direct access method 
is used. I can create a separate ticket to add those to OHC.

Is fixing up the rest of the access methods for OHC something I should do 
immediately?

> 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)

Reply via email to