kezhenxu94 commented on issue #4305: Performance tuning: replace AtomicInteger 
with AtomicIntegerFieldUpdater
URL: https://github.com/apache/skywalking/pull/4305#issuecomment-581040183
 
 
   > @kezhenxu94 I think you miss an important factor, in the 
`AtomicIntegerFieldUpdaterImpl`, it is using the refactor, which causes more 
CPU. This is a memory-CPU tradeoff, I am not sure this is the performance 
tuning. In my mind, in today's production env, CPU is more valuable than the 
memory.
   > 
   > Especially, CPU is affecting latency, response time and throughput more.
   
   @wu-sheng as you can see, the updater is `static` and is only instantiated 
once, and reflection is only use in the instantiation to find the field offset, 
so the CPU cost is an one-time cost

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to