You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Robbie Gemmell (JIRA)" <ji...@apache.org> on 2018/11/06 18:00:00 UTC

[jira] [Updated] (PROTON-1941) Add WritableBuffer API for requesting space when writing complex types

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

Robbie Gemmell updated PROTON-1941:
-----------------------------------
    Issue Type: Improvement  (was: Bug)

> Add WritableBuffer API for requesting space when writing complex types
> ----------------------------------------------------------------------
>
>                 Key: PROTON-1941
>                 URL: https://issues.apache.org/jira/browse/PROTON-1941
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: proton-j
>    Affects Versions: proton-j-0.29.0
>            Reporter: Timothy Bish
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: proton-j-0.30.0
>
>
> Add new optional API to WritableBuffer that allows a complex types that has already computed the encoding size to request that the buffer have at least that amount of writable space left before an attempt to encode into that buffers occurs.  This can result in either an early failure of the encode avoiding encoding when the result is bound to fail or the underlying buffer can increase its capacity to accommodate the incoming writes before they happen which can result in less churn as a buffer tries to grow as the complex type gets encoded into it. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org