dlg99 commented on issue #3428:
URL: https://github.com/apache/bookkeeper/issues/3428#issuecomment-1198445564

   there are a lot of places like that for v3 requests (grep for 
ByteString.copyFrom).
   As I understand. that at leas a part of the reason for Pulsar to use v2 
protocol 
https://github.com/apache/pulsar/blob/89b6a535aa8de8e2475cd39320897700e64d269e/conf/broker.conf#L870
   
   You can try using UnsafeByteOperations.unsafeWrap instead of 
ByteString.copyFrom (e.g. see https://github.com/apache/bookkeeper/pull/1361 ) 
to reduce memory pressure but you have to be really careful about not recycling 
entryBody (and similar) before the protobuf-related operation completes.
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to