Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-309

DurationStatsTracker is highly inefficient

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 1813

    Description

      DurationStatsTracker is calculating running average in the fast path, incurring at least 4 volatile reads, 2 double-precision multiplies, 1 double-precision division and two compare-and-swaps. Optionally this includes another 2 CASes and 2 volatile writes. Reading the stats afterwards is a breeze, though.

      This is obviously biased in the wrong direction, so it needs fixing.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: