caiconghui opened a new issue #4132:
URL: https://github.com/apache/incubator-doris/issues/4132


   In the statistical summation scenario, LongAdder(introduced by jdk1.8) has 
better performance than AtomicLong in high concurrency update scenario. And if 
we just want to keep get and set operation for variable to be atomic, just add 
volatile at the front of the variable is enough, use AtomicLong is a little 
heavy.


----------------------------------------------------------------
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to