Avoid constructing transient vector<BSONElement> when lexing input pipelines

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Query 2020-09-07, Query 2020-09-21
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Using the Array() method on a BSONElement results in a construction of a separate vector which we use to iterate and lex. This can be avoided by using embeddedObject() where the fieldnames are the indexes of the array.

              Assignee:
              Nicholas Zolnierz
              Reporter:
              Nicholas Zolnierz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: