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

Faster NamespaceString and DatabaseName construction

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Service Arch
    • 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

      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:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: