Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
Fully Compatible
-
Query 2017-09-11, Query 2017-10-02, Query 2017-10-23
-
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
- causes
-
SERVER-32302 for-each loop over BSONObj is slower than explicit BSONObjIterator in MatchExpressionParser code
-
- Closed
-