Performance tuning, replace AtomicInteger with AtomicIntegerFieldUpdater (#4305)
Motivation: Reduce unnecessary memory allocation in frequently used class. Modifications: Replace the `AtomicInteger` with `AtomicIntegerFieldUpdater` Result: We can save 4 bytes (for the reference to `AtomicInteger` itself) for each `TracingContext`, which saves credible memory in a high-concurrent agent service.
Showing
想要评论请 注册 或 登录