-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StressTestDeepNestingOfConcat takes a lot longer on NonBacktracking than other engines #60645
Comments
Tagging subscribers to this area: @eerhardt, @dotnet/area-system-text-regularexpressions Issue DetailsHere's how long the various tests took with the different engines:
|
I'm suspecting large overhead due to overlapping derivatives in unions (regexes) that are created due to |
@veanes, I just tried this test again, and it's gotten way worse than before. After minutes of it running, I attached a debugger, and I see the builder's node count in the hundreds of millions: |
I'm investigating it. Been debugging and stepping through the code paths. |
Thanks. |
I was a bit stuck on this, but after a meeting yesterday with Olli, we figured out the cause. |
working on it still, not fully fixed yet, but in the process |
Got it, that's fine I know that you are working on some related changes but I was just wondering if this particular one could be closed or not. |
I think they would be closed, I am currently implementing and testing necessary simplification rules that keep the derivatives small, e.g. ones such as Y|XY --> X?Y |
The issue is now fixed, by #69530. |
Here's how long the various tests took with the different engines:
The text was updated successfully, but these errors were encountered: