You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rob Godfrey (JIRA)" <ji...@apache.org> on 2015/11/12 01:19:11 UTC
[jira] [Resolved] (QPID-6768) Avoid unnecessary message payload
copy during send (0-8...0-91)
[ https://issues.apache.org/jira/browse/QPID-6768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Godfrey resolved QPID-6768.
-------------------------------
Resolution: Fixed
> 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, Java Common
> 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 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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org