You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Joshua McKenzie (JIRA)" <ji...@apache.org> on 2017/11/14 14:42:00 UTC

[jira] [Updated] (CASSANDRA-13856) Optimize ByteBuf reallocations in the native protocol pipeline

     [ https://issues.apache.org/jira/browse/CASSANDRA-13856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua McKenzie updated CASSANDRA-13856:
----------------------------------------
    Component/s: Core

> Optimize ByteBuf reallocations in the native protocol pipeline
> --------------------------------------------------------------
>
>                 Key: CASSANDRA-13856
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13856
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jason Brown
>            Assignee: Jason Brown
>            Priority: Minor
>
> This is a follow up to CASSANDRA-13789. I discovered we reallocate the {{ByteBuf}} when writing data to it, and it would be nice to size the buffer correctly up-front to avoid reallocating it. I'm not sure how easy that is, nor if the cost of the realloc is cheaper than calculating the size needed for the buffer. Adding this ticket, nonetheless, to explore that optimization.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org