[ 
https://issues.apache.org/jira/browse/QPID-6768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14942696#comment-14942696
 ] 

ASF subversion and git services commented on QPID-6768:
-------------------------------------------------------

Commit 1706695 from [~k-wall] in branch 'java/trunk'
[ https://svn.apache.org/r1706695 ]

QPID-6768: Avoid unnecessary message payload copy during publish (0-8...0-91)

> 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