merlimat commented on PR #15033:
URL: https://github.com/apache/pulsar/pull/15033#issuecomment-1252613717

   > Here I use the default value of maxComponent, which is 16. Because I was 
not sure what exact value to set.
   > But on the whole, the buffer will be allocated lazily, which means fewer 
wasted memory. To some extent, it achieves the purpose of saving memory.
   
   Allocating many small buffers will have a significant large impact compared 
to allocating 1 single large buffer: 
    1. Netty allocator synchronization
    2. Scattered write on the socket from many small buffers
   


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