netudima opened a new pull request, #4324: URL: https://github.com/apache/cassandra/pull/4324
Optimize Counter, Meter and Histogram metrics using thread local counters Codahale metrics do not provide the ability to create custom metric implementations, so we have to inherit from Codahale classes. For better cache locality rate and counter values are extracted to a common thread-local arrays. Threads death is tracked using 2 approaches: FastThreadLocal.onRemoval callback and phantom references to Thread objects. Phantom references are used to track aliveness of metric users and reusing of metric IDs. Patch by Dmitry Konstantinov; reviewed by TBD for CASSANDRA-20250 -- 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: pr-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For additional commands, e-mail: pr-h...@cassandra.apache.org