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

Improve memory layout of NamespaceStringOrUUID

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v7.0
    • Server Serverless 2023-05-29

      The layout of NamespaceStringOrUUID is composed of many boost::optional s, as well as one unused boolean, adding up to a 102 byte width. Considering how often this type is used in the server, reducing its width to something that can fit on a cache line should improve overall performance.

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: