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

Optimize parsing code for top-level MatchExpressions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0-rc1
    • Component/s: Internal Code
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Query 2017-09-11, Query 2017-10-02, Query 2017-10-23
    • Linked BF Score:
      0

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: