Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Extend SearchValues<string> use in Regex to NonBacktracking#103496

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
stephentoub merged 1 commit intodotnet:mainfromstephentoub:regexsearchvaluesnb
Jun 17, 2024

Conversation

stephentoub
Copy link
Member

We previously only enabled this for the compiler / source generator. Support it with NonBacktracking, too. We could easily enable it now for the interpreter as well... I've shied away from it not for technical reasons but because there is measurable cost associated with the analysis here, and we typically try to keep the interpreter construction relatively fast.

MethodToolchainPatternOptionsMeanRatio
Count\main\corerun.exe(?i)Sher[a-z]+|Hol[a-z]+NonBacktracking926.0 us1.00
Count\pr\corerun.exe(?i)Sher[a-z]+|Hol[a-z]+NonBacktracking183.8 us0.20
Count\main\corerun.exe(?i)Sherlock|Holmes|WatsonNonBacktracking2,087.0 us1.00
Count\pr\corerun.exe(?i)Sherlock|Holmes|WatsonNonBacktracking160.4 us0.08

MihaZupan reacted with hooray emoji
We previously only enabled this for the compiler. Support it with NonBacktracking, too.
@dotnet-policy-serviceDotnet Policy Service
Copy link
Contributor

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

@stephentoubstephentoub merged commit44c519e intodotnet:mainJun 17, 2024
81 of 83 checks passed
@stephentoubstephentoub deleted the regexsearchvaluesnb branchJune 17, 2024 18:04
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJul 18, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@MihaZupanMihaZupanMihaZupan approved these changes

Assignees

@stephentoubstephentoub

Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@stephentoub@MihaZupan

[8]ページ先頭

©2009-2025 Movatter.jp