wangjialing218 commented on pull request #13204:
URL: https://github.com/apache/pulsar/pull/13204#issuecomment-990491001


   We do not have to do `LongAdder.sum()` each time when add or decrease 
pending bytes,  since it's a little heavy CPU work.
   We could do sum() in another scheduler task such as 50ms each time, and then 
inform `ServerCnx` in broker and protocol handlers to stop or resume reading by 
listener.


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