-
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
[release/7.0-rc1] Optimized string.Replace(char, char) #74047
[release/7.0-rc1] Optimized string.Replace(char, char) #74047
Conversation
When the remaining length is a multiple of the vector size, then the remainder is processed twice. This is redundant, and not needed. This commit changes that, so that the remainder is processed only once when the remaining elements match.
….Count and added tests for this
… it in string.Replace(char, char)
….GetRawStringDataAsUshort() internal method
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @dotnet/area-system-runtime Issue DetailsBackport of #67049 to release/7.0-rc1 /cc @danmoseley @gfoidl I'm backporting this as a special case, as discussed with @stephentoub . It missed the cutoff by hours due to unrelated infra issues, and the PR had been open for 5 months.
|
@dotnet/dnceng
|
We're tracking this via dotnet/arcade#10358, I'll add this data point to the IcM. Looks like it's still active and they've pinged me for comment this morning. |
The 13 HTTP failures on RedHat are due to failing to upload some results, which according to Matt is a known issue already tracked. |
Backport of #67049 to release/7.0-rc1
/cc @danmoseley @gfoidl
I'm backporting this as a special case, as discussed with @stephentoub . It missed the cutoff by hours due to unrelated infra issues, and the PR had been open for 5 months. The improvement is also significant.