-
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
Commits on Aug 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 090f739 - Browse repository at this point
Copy the full SHA 090f739View commit details -
Configuration menu - View commit details
-
Copy full SHA for d366d93 - Browse repository at this point
Copy the full SHA d366d93View commit details -
Do vectorized operation at the end of the string only once
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.
Configuration menu - View commit details
-
Copy full SHA for b4dcd15 - Browse repository at this point
Copy the full SHA b4dcd15View commit details -
Configuration menu - View commit details
-
Copy full SHA for 424f16b - Browse repository at this point
Copy the full SHA 424f16bView commit details -
Handle remainder vectorized even if remainingLength <= Vector<ushort>…
….Count and added tests for this
Configuration menu - View commit details
-
Copy full SHA for 98c3f6a - Browse repository at this point
Copy the full SHA 98c3f6aView commit details -
Introduce (internal) Vector.LoadUnsafe and Vector.StoreUnsafe and use…
… it in string.Replace(char, char)
Configuration menu - View commit details
-
Copy full SHA for 0a395c0 - Browse repository at this point
Copy the full SHA 0a395c0View commit details -
Avoid Unsafe.As<char, ushort> reinterpret casts by introducing string…
….GetRawStringDataAsUshort() internal method
Configuration menu - View commit details
-
Copy full SHA for c5f4740 - Browse repository at this point
Copy the full SHA c5f4740View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5686225 - Browse repository at this point
Copy the full SHA 5686225View commit details -
Configuration menu - View commit details
-
Copy full SHA for d875e1f - Browse repository at this point
Copy the full SHA d875e1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d011202 - Browse repository at this point
Copy the full SHA d011202View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b8adce - Browse repository at this point
Copy the full SHA 7b8adceView commit details