Dmitry Konstantinov created CASSANDRA-21020:
-----------------------------------------------

             Summary: Optimize thread local for metrics and tracing
                 Key: CASSANDRA-21020
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21020
             Project: Apache Cassandra
          Issue Type: Improvement
          Components: Observability/Metrics, Observability/Tracing
            Reporter: Dmitry Konstantinov
            Assignee: Dmitry Konstantinov


Currently Netty thread local logic is used in tracing to keep state and in 
metrics (thread local counters logic introduced in CASSANDRA-20250), so we do 
the thread local lookups many times during a request processing. These cases 
can be optimized by placing these objects into Thread itself by introducing 
CassandraThread as a child of FastThreadLocalThread.

Similar idea can be found even in JDK (ThreadLocalRandom logic was introduced 
for ForkJoinPool speedup)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to