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

Reduce RecordId copying in hot code paths

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.2.0
    • None
    • None
    • None
    • Fully Compatible
    • Execution Team 2021-10-18, Execution Team 2021-11-01
    • 100

    Description

      SERVER-58949 increased the size of RecordId from 16 bytes to 32 and added a ConstSharedBuffer member that made the type no longer trivially copiable.

      This caused some performance regressions in hot code paths. Reduce the number of RecordId copies required in these code paths by passing references and moving where able.

      These hot paths include, but are not limited to: validation, index builds, and collection scans

      Attachments

        Activity

          People

            louis.williams@mongodb.com Louis Williams
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: