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

[jira] [Created] (PROTON-1808) [proton-j] FrameWriter allocates additional buffer capacity inefficiently

Timothy Bish created PROTON-1808:
------------------------------------

             Summary: [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
             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-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org