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

Sylvain Lebresne commented on CASSANDRA-13789:
----------------------------------------------

[~norman]: haven't looked that the Netty code, but would it be easy/reasonable 
to add a {{ByteBuf::writeBytes(ByteBuffer, int, int)}} (or basically anything 
to transfer from a {{ByteBuffer}} without advancing the position)? That would 
allow us to save the {{duplicate()}} without the current concurrency issue.

> Reduce memory copies and object creations when acting on  ByteBufs
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-13789
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13789
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Norman Maurer
>            Assignee: Norman Maurer
>             Fix For: 4.0
>
>         Attachments: 
> 0001-CBUtil.sizeOfLongString-encodes-String-to-byte-to-ca.patch, 
> 0001-Reduce-memory-copies-and-object-creations-when-actin.patch
>
>
> There are multiple "low-hanging-fruits" when it comes to reduce memory copies 
> and object allocations when acting on ByteBufs.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to