Investigate performance of obtaining stats by Locker::getLockerInfo in CurOp

XMLWordPrintableJSON

    • Query Execution
    • Fully Compatible
    • v8.0
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      CurOp uses on Locker::getLockInfo in order to obtain cumulative wait time via getCumulativeWaitTimeMicros
       
      This seems to represent around 1us cost for find by id queries. It likely could be reduced to 0.2us by avoiding copying and manipulating LockStats, but instead extracting aggregate time from atomic stats directly as only a subset of stats is needed for this computation. This should result in approx 1% improvemement for find by id queries.

            Assignee:
            Anna Wawrzyniak
            Reporter:
            Anna Wawrzyniak
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: