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

StringData(ptr, length) invariant should only be checked in debug builds

    • Service Arch 2022-2-21, Service Arch 2022-03-07
    • 135
    • 2

      StringData is supposed to be a "free" type. That invariant leads to the constructor being called out of line and all of the overhead involved in that. It was lighting up over 2% in one profile.

            Assignee:
            matt.diener@mongodb.com Matt Diener (Inactive)
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: