ivankelly edited a comment on pull request #7406:
URL: https://github.com/apache/pulsar/pull/7406#issuecomment-652396552


   @codelipenghui A LongAdder would still cause contention on every entry, as 
to sum it has to view all cells. To allow a single thread to use the full 
buffer when there's little traffic on the other threads, we should use a token 
bucket, as networking folks have been doing for decades.


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to