-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Optimize string.Split(char, ...)
#125379
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
Merged
+290
−43
Merged
Optimize string.Split(char, ...)
#125379
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
6caf82d
Optimize string.Split(char, ...)
hamarb123 9ed7713
Add additional optimization for the case where separators are sparse …
hamarb123 35cfe8b
Remove unnecessary using
hamarb123 93b7acc
Address most feedback from copilot
hamarb123 43eef0e
Update SpanHelpers.Packed.cs
hamarb123 ce9162e
Address copilot feedback
hamarb123 65db592
Add vectorized handling for remnant
hamarb123 182aaa1
Address copilot feedback
hamarb123 b68c868
Update String.Manipulation.cs
hamarb123 8fdc167
Add tests
hamarb123 69b0594
Fix copy & paste error
hamarb123 f2a7749
Fix test failures
hamarb123 fdf8887
Convert to safe simd using copilot
hamarb123 939c5ae
Merge branch 'main' into main33
hamarb123 5ac03e1
Apply suggestions from code review
hamarb123 443ec50
Fix typing
hamarb123 8a13cab
Merge branch 'main33' of https://github.com/hamarb123/runtime into ma…
hamarb123 46f82cd
Change spacing back for 'MakeSeparatorListAny'
hamarb123 6551e90
Merge branch 'main' into main33
hamarb123 67fdc66
Update src/libraries/System.Private.CoreLib/src/System/String.Manipul…
hamarb123 f91b0e3
Re-order cases to be more optimal
hamarb123 2470c78
Fix compile error
hamarb123 10a73ed
test if changing 3 param version also is profitable
hamarb123 d4732bd
Clean up new code (and existing code) by making cmp directly in all c…
hamarb123 1084e9d
fix logic
hamarb123 cb8d731
Revert 1-3 to be shared logic
hamarb123 13d9e25
Update String.Manipulation.cs
hamarb123 8be94ce
Update String.Manipulation.cs
hamarb123 585430f
Update String.Manipulation.cs
hamarb123 e0be16e
Add some additional tests
hamarb123 f34210b
Merge branch 'main' into main33
hamarb123 dd77554
Try more optimal comparison sequence
hamarb123 2871b1e
Re-add special handling for 1-char case
hamarb123 098951d
Revert "Re-add special handling for 1-char case"
hamarb123 3354142
Merge branch 'main' into main33
hamarb123 96c5347
Update String.Manipulation.cs
hamarb123 dedfba7
Merge branch 'main33' of https://github.com/hamarb123/runtime into ma…
hamarb123 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.