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

XMLWordPrintableJSON

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

      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
            Reporter:
            Colin Stolley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: