We're updating the issue view to help you get more done. 

Take advantage of Java 8 improvements to optimise Statistics

Description

Statistics collection can be made more efficient by replacing various usages of AtomicLong with LongAdder instances.

AtomicLong is prone to high contention as our use case would be mostly to write on it; in such cases LongAdder is able to avoid the write contention though being slightly less efficient to read the statistics.

People don't normally read the statistics at high rates so such a change has been shown to provide very good improvements on other similar use cases.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major