merlimat commented on pull request #7406: URL: https://github.com/apache/pulsar/pull/7406#issuecomment-654408764
> Sorry I didn't make it clear. I mean if we have 32 io thread, for each message we sum 32 numbers, is this will be a bottleneck of the broker? I just want to know the disadvantages of using Longadder. @codelipenghui With longadder you'd still need to run a background thread to do the enforcement, because the `increment` part is low-contention, but reading the "actual value" is on the slow path. ---------------------------------------------------------------- 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