Pre-size MutableDocument in exec::expression::evaluate

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      BF-41815 flagged a performance regression that erin.liang@mongodb.com suggested could be improved by pre-sizing the MutableDocument in exec::expression::evaluate using the number of known child expressions: https://jira.mongodb.org/browse/BF-41815?focusedCommentId=8168339&focusedId=8168339&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-8168339. 

      After running a perf patch with this change, the aforementioned regression was fixed.

            Assignee:
            Josh Siegel
            Reporter:
            Josh Siegel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: