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

Hold WorkingSetMembers at a distance for sorting

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.4
    • None
    • Querying
    • Fully Compatible
    • Query 2020-02-10
    • 0

    Description

      If we buffer and sort WorkingSetMembers directly, then we pay for moving these objects during the std::swap()s performed by the Sorter's underlying call to std::stable_sort(). If we instead sort pointers to WorkingSetMembers, then these swaps are cheaper. This has been shown to improve the throughput of our blocking sort benchmark (Aggregation.Sort).

      Attachments

        Activity

          People

            david.storch@mongodb.com David Storch
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: