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

Optimize parsing code for top-level MatchExpressions

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc1
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • Query 2017-09-11, Query 2017-10-02, Query 2017-10-23
    • 0

      The MatchExpression parser has a giant if block that performs many string comparisons as it attempts to parse a top-level keyword. We should attempt to optimize this to reduce the number of string comparisons.

      A hash map seems like a better choice.

            Assignee:
            blake.oler@mongodb.com Blake Oler
            Reporter:
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: