Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-90658

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

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

      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@mongodb.com Anna Wawrzyniak
            Reporter:
            anna.wawrzyniak@mongodb.com Anna Wawrzyniak
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: