Optimize some CodecCounter inefficiency.
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.
Showing
with
25 additions
and
44 deletions
Please
register
or
sign in
to comment