caiconghui commented on pull request #4131: URL: https://github.com/apache/incubator-doris/pull/4131#issuecomment-663330717
> @caiconghui Hi,how many performance improvement this PR will get? @kangkaisen for single AtomicLong value and single LongAdder value, i test increment opertion with 30 threads in 2 seconds in my macbook, and I find the Throughput increased by about 60% when i used LongAdder instead of AtomicLong. as for volatile long and AtomicLong, the performance is almost same, but if volatile can be enough to ensure thread-safe, then we should take a more lightweight solution. ---------------------------------------------------------------- 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