Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-6768

Avoid unnecessary message payload copy during send (0-8...0-91)

    XMLWordPrintableJSON

    Details

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kwall Keith Wall
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: