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

assorted count optimizations

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying

      A collection of small optimizations have been shown to improve the performance of simple counts about 3x in testing. They include:

      • caching a BtreeBucket retrieved from a DiskLoc in IntervalBtreeCursor
      • a simplified implementation for checking if the read lock should be yielded in count.cpp
      • reducing the number of calls to Cursor interface functions in count.cpp and IntervalBtreeCursor
      • a new Cursor::acceptCurrent() function that avoids a call to currLoc() and avoids virtual calls in some cases

        1. count perf.pdf
          28 kB
          Aaron Staple

            Assignee:
            Unassigned Unassigned
            Reporter:
            aaron Aaron Staple
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: