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

Use faster string construction for PlanExplainerExpress::getPlanSummary

    • Query Execution
    • Fully Compatible
    • v8.0
    • 105

      The string construction here is not efficient because it reallocates a new string every for every += operator along with a copy.

      To be maximally efficient, we could have the caller pass in a StackStringBuilder to getPlanSummary() to avoid any memory allocations in most cases. Otherwise, a regular StringBuilder should be better than what exists currently.

      CC colin.stolley@mongodb.com

            Assignee:
            colin.stolley@mongodb.com Colin Stolley
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: