You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/05/11 08:29:14 UTC

[GitHub] [pulsar] BewareMyPower edited a comment on issue #6916: Send the same message without copying the internal payload?

BewareMyPower edited a comment on issue #6916:
URL: https://github.com/apache/pulsar/issues/6916#issuecomment-626554022


   Well, with C++ client, I can use `MessageBuilder::setAllocatedContent` and maintain the payload string myself, eg. use `std::shared_ptr<std::string>`.
   
   With Java client, the internal payload won't be copied, the same byte array could be passed to `ByteBuffer.wrap` in `TypedMessageBuilder.value` method.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org