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

    XMLWordPrintableJSON

Details

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: