Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

stephentoub
Copy link
Member

We can factor in up to the minimum iteration count of the loop.

This also makes handling a top-level alternation a bit cheaper.

We can factor in up to the minimum iteration count of the loop.

This also makes handling a top-level alternation a bit cheaper.
@ghost
Copy link

ghost commented Feb 23, 2024

Tagging subscribers to this area: @dotnet/area-system-text-regularexpressions
See info in area-owners.md if you want to be subscribed.

Issue Details

We can factor in up to the minimum iteration count of the loop.

This also makes handling a top-level alternation a bit cheaper.

Author: stephentoub
Assignees: stephentoub
Labels:

area-System.Text.RegularExpressions

Milestone: -

Copy link
Member

@MihaZupan MihaZupan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat

@DrewScoggins
Copy link
Member

DrewScoggins commented Feb 27, 2024

Possible improvements from this change:
dotnet/perf-autofiling-issues#29846
dotnet/perf-autofiling-issues#29823 (First three issues seem related)

@danmoseley
Copy link
Member

Nice. For dotnet/perf-autofiling-issues#29823 it seems there was an earlier regression that this unrelated improvement has canceled. Did we track that regression? Perhaps it was by design - I remember some regression due to correctness.

@stephentoub
Copy link
Member Author

While improving something is always nice, I don't think this PR could have improved those tests. Many of them don't use regex, and the ones that do, the pattern they use shouldn't have been impacted by this change.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants