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

Faster NamespaceString and DatabaseName construction

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • 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

    Description

      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.

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: