nicktelford opened a new pull request, #16076:
URL: https://github.com/apache/kafka/pull/16076

   `LongAdder` performs better than `AtomicInteger` when under contention
   from many threads. Since it's possible that many Interactive Query
   threads could create a large number of `KeyValueIterator`s, we don't
   want contention on a metric to be a performance bottleneck.
   
   The trade-off is memory, as `LongAdder` uses more memory to space out
   independent counters across different cache lines. In practice, I don't
   expect this to cause too many problems, as we're only constructing 1
   per-store.
   


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to