Timothy Bish created PROTON-1948:
------------------------------------

             Summary: Refactor FrameWriter to avoid reencodes when buffer space 
is insufficient
                 Key: PROTON-1948
                 URL: https://issues.apache.org/jira/browse/PROTON-1948
             Project: Qpid Proton
          Issue Type: Improvement
          Components: proton-j
    Affects Versions: proton-j-0.29.0
            Reporter: Timothy Bish
            Assignee: Timothy Bish
             Fix For: proton-j-0.30.0


The current FrameWriter implementation uses a ByteBuffer wrapped in a 
ReadableBuffer to encode to and if the buffer is to small it recreates the 
buffer with a larger size and must perform a second encode to finish the job.  
We can now implement our own ReadableBuffer type for the writer that both 
performs better by dropping the ByteBuffer abstractions and that grows as 
needed to fit the encoding of the types and the accompanying payloads (for 
Transfers).



--
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