Faster NamespaceString and DatabaseName construction

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • Service Arch 2022-12-26, Service Arch 2022-09-19, Service Arch 2022-10-03, Service Arch 2022-10-17, Service Arch 2022-10-31, Service Arch 2022-11-14, Service Arch 2022-11-28, Service Arch 2022-12-12, Service Arch 2023-01-09, Service Arch 2023-01-23, Service Arch 2023-02-06, Service Arch 2023-02-20
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We can go a little further than SERVER-66963 by avoiding StringData.toString.
      These classes store a std::string data member, so the fast idiom is to accept a std::string by value and std::move it into the data member.

      If the caller already has a std::string rvalue, then StringData is a pessimization.

              Assignee:
              Unassigned
              Reporter:
              Billy Donahue
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: