Keith Wall created QPID-6768:
--------------------------------

             Summary: Avoid unnecessary message payload copy during send 
(0-8...0-91)
                 Key: QPID-6768
                 URL: https://issues.apache.org/jira/browse/QPID-6768
             Project: Qpid
          Issue Type: Bug
          Components: Java Client
            Reporter: Keith Wall
            Priority: Minor
             Fix For: qpid-java-6.0


The {{org.apache.qpid.framing.ContentBody#writePayload(java.io.DataOutput)}} 
method (on the client's publish path when using 0-8..0-91) always copies a the 
payload before writing to the {{DataOutput}}.  The underlying byte buffer is 
expected to be a heap byte buffer and so will have a backing array, so the copy 
can be optimised away in this case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to