I did profiling with perf on linux on my program using concurrentqueue and the results indicated that concurrentqueue size_approx() is slow.
该提问来源于开源项目:cameron314/concurrentqueue
See the README.