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

Remove extraneous Status constructor calls in the hot path for query planning.

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Optimization
    • Fully Compatible
    • QO 2024-03-18

      The call stack for getExecutor includes various expensive calls to the Status constructor using std::string instead of StringData. Replace them with static const to reduce the constructor call count and replace the strings with StringData to reduce the string construction overhead.

      This is specifically for collection scans.

            Assignee:
            william.qian@mongodb.com William Qian
            Reporter:
            william.qian@mongodb.com William Qian
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: