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

Timothy Bish resolved PROTON-1808.
----------------------------------
    Resolution: Fixed

> [proton-j] FrameWriter allocates additional buffer capacity inefficiently
> -------------------------------------------------------------------------
>
>                 Key: PROTON-1808
>                 URL: https://issues.apache.org/jira/browse/PROTON-1808
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: proton-j
>    Affects Versions: proton-j-0.26.0
>            Reporter: Timothy Bish
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: proton-j-0.27.0
>
>
> When writing a Transfer that has a larger payload than previously seen the 
> FrameWriter may need to grow its internal buffer to accommodate that 
> transfer.  The current strategy is to double the capacity of the current 
> buffer and copy the old bytes into the new buffer and then check again if 
> there is room.  Depending on the frame size setting and the size of the 
> transfer this can result in a large amount of garbage being created and a 
> number of unneeded copies of encoded performative data. 



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

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

Reply via email to