Uploaded image for project: 'Hibernate ORM'
  1. HHH-12521

Take advantage of Java 8 improvements to optimise Statistics

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 5.3.0.CR2
    • Components: hibernate-core
    • Labels:
      None
    • Last commented by a user?:
      true
    • Sprint:

      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.

        Attachments

          Activity

            People

            • Assignee:
              sanne Sanne Grinovero
              Reporter:
              sanne Sanne Grinovero
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: