You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regex UpdateBumpalong logic should be applicable to lazy loops as well #62677
The optimization we employ in RegexNode.FinalOptimize to insert an UpdateBumpalong node after a starting loop does so for unbounded {One/Notone/Set}loop{atomic} nodes, but not for {One/Notone/Set}lazy nodes.
It should be applicable for lazy loops as well, as if the match ends up failing, we will have explored the same range, just effectively in the opposite direction. One thing that may need more thought is if we need to special-case not applying this for atomic lazy loops, which will always only check for the minimum bound.
(This code, and other code in RegexNode, can also be cleaned up nicely now that we have improved C# pattern matching support.)
Activity