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

Reduce RecordId copying in hot code paths

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2021-10-18, Execution Team 2021-11-01
    • 100

      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

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

              Created:
              Updated:
              Resolved: