Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-74848 Addess recent performance regressions in mixed workloads
  3. SERVER-74849

CommandInvocation: Don't re-parse NamespaceString and copy it repeatedly

    • Type: Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible

      CommandInvocation::ns() parses the NamespaceString from the request over and over again even though the dbName and request are both const. We should parse it once upon initialization and never again.

      We can also be better about making copies of the NamespaceString, so do that too.

            Assignee:
            colin.stolley@mongodb.com Colin Stolley
            Reporter:
            colin.stolley@mongodb.com Colin Stolley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: