jonhoo / tracing-timing

Inter-event timing metrics on top of tracing.
113 stars 11 forks source link

Make the fast path take no locks #3

Open jonhoo opened 5 years ago

jonhoo commented 5 years ago

Ideally we'd like event recording to not even take the sharded read lock on the fast path. This should be possible by keeping the TLS in some kind of atomic linked list instead of as a map inside the critical state. There are two main challenges with this approach: