-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[String] Custom Iterators for String Views #20438
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
Conversation
@swift-ci please benchmark |
@swift-ci please smoke test |
@swift-ci please benchmark |
@swift-ci please smoke test |
@swift-ci please benchmark |
Build comment file:Performance: -O
Code size: -O
Performance: -Osize
Code size: -Osize
Performance: -Onone
How to read the dataThe tables contain differences in performance which are larger than 8% and differences in code size which are larger than 1%.If you see any unexpected regressions, you should consider fixing the Noise: Sometimes the performance results (not code size!) contain false Hardware Overview
|
Provide a custom iterator rather than relying a the IndexingIterator, as an indexing model is less efficient for stateful processing of strings. Provides around a 30% speedup.
Gives us modest wins on complex grapheme strings, but up to 40% on heavy-ASCII strings.
@swift-ci please test |
@swift-ci please benchmark |
Build failed |
Build failed |
@swift-ci please smoke test linux platform |
Build comment file:Performance: -O
Code size: -O
Performance: -Osize
Code size: -Osize
Performance: -Onone
How to read the dataThe tables contain differences in performance which are larger than 8% and differences in code size which are larger than 1%.If you see any unexpected regressions, you should consider fixing the Noise: Sometimes the performance results (not code size!) contain false Hardware Overview
|
@swift-ci please smoke test and merge |
(full testing passed both platforms prior to the merge conflict on the ABI checker file) |
@swift-ci please smoke test |
@swift-ci please smoke test and merge |
(again, passed testing but there was a merge conflict on abi file) |
@swift-ci please smoke test and merge |
1 similar comment
@swift-ci please smoke test and merge |
@swift-ci please smoke test |
@swift-ci please smoke test os x platform |
@swift-ci please smoke test linux platform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 👍
Provide a custom iterator rather than relying a the IndexingIterator,
as an indexing model is less efficient for stateful processing of
strings. Provides around a 30% speedup.