Menu

#4 OrderedGrep re-compiles regex every line

v1.0 (example)
closed-fixed
nobody
Modules (5)
5
2019-03-09
2009-10-01
Anonymous
No

The implementation of assert ordered grep has a list of expressions, when it finds a match it pops an item off the list. Each time around the loop over lines in the file the top of the list is recompiled as an expression.

Instead there should be a mapping of strings to compiled excpressions at the top of the method

Discussion

  • Ben Spiller

    Ben Spiller - 2019-03-09
    • status: open --> closed-fixed
    • Group: --> v1.0 (example)
     

Log in to post a comment.

MongoDB Logo MongoDB