Skip to content

Conversation

@stephentoub
Copy link
Member

@stephentoub stephentoub added this to the 7.0.0 milestone May 4, 2022
@ghost ghost assigned stephentoub May 4, 2022
@ghost
Copy link

ghost commented May 4, 2022

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

Issue Details

cc: @GrabYourPitchforks, @joperezr

Author: stephentoub
Assignees: -
Labels:

area-System.Text.RegularExpressions, tenet-performance

Milestone: 7.0.0

@stephentoub
Copy link
Member Author

I added a comment. I also noticed that we didn't actually need this check at all in some circumstances, so I made it conditional, and when we do emit it, I tweaked the bound to match exactly to the offset that will be used for one of the subsequent checks, since at least today the only one the JIT will eliminate in this situation is one with exactly the same index.

Copy link
Member

@joperezr joperezr left a comment

Choose a reason for hiding this comment

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

Sorry, I thought I had approved already with a comment but apparently not.

@stephentoub stephentoub merged commit 393be55 into dotnet:main May 5, 2022
@stephentoub stephentoub deleted the regexboundscheck branch May 5, 2022 17:23
@ghost ghost locked as resolved and limited conversation to collaborators Jun 4, 2022
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.

2 participants