CodecCounters.java
2.34 KB
-
Optimize some CodecCounter inefficiency. · 25a53265
1. Use ints rather than longs. 2. Remove some counters that dont seem hugely useful. 3. Replace use of volatile with explicit method calls that cause a memory barrier. This is a lot more efficient than using volatile because it can be invoked only once per doSomeWork.
Oliver Woodman committed