-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Vectorize basic_string::find_first_of
#4744
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
Stephan T. Lavavej (StephanTLavavej)
merged 29 commits into
microsoft:main
from
AlexGuteniev:string_attached
Sep 4, 2024
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
f85a9d0
benchmark basic_string::find_first_of
AlexGuteniev 20f9f87
move `_Find_first_of_vectorized` to `<xutility>`
AlexGuteniev 3ba668a
attach the optimization
AlexGuteniev 7a5a7bf
unsigned
AlexGuteniev 72d3d22
benchmark out-of-table case
AlexGuteniev 2608a58
Vectorize large char type only for small needle
AlexGuteniev 22b3494
coverage
AlexGuteniev 6928323
fix benchmark bug
AlexGuteniev cd2ce42
stray
AlexGuteniev 8cb9a23
Merge remote-tracking branch 'upstream/main' into string_attached
AlexGuteniev c477fbb
add `if constexpr` warning suppression
AlexGuteniev a97c791
Merge branch 'main' into string_attached
StephanTLavavej ff285ad
Step 1: Copy the "return no match" upwards.
StephanTLavavej 2cf1f27
Step 2: Flip `_Matches._Mark` control flow.
StephanTLavavej ac5a88e
Step 3: `_Use_bitmap` avoids code duplication.
StephanTLavavej e6b015d
Extract `_Elem` instead of `_Elem_size`.
StephanTLavavej 849092d
Fall through to "not special" instead of calling self with `_Special …
StephanTLavavej 5dfadec
Extract `_Hay_start`, `_Hay_end`.
StephanTLavavej 82ffddf
Comment: Mention "vectorized or serial" fallbacks.
StephanTLavavej 44e8f8c
Comment: Reverse to "vectorization outperforms" (and slightly reduce …
StephanTLavavej 757d784
Comment: Add "found a match".
StephanTLavavej 04d95f2
Benchmark: `AlgType::std` => `AlgType::std_func`
StephanTLavavej c8f93e7
Test: `expected_ptr` => `expected_iter`
StephanTLavavej ef2ed39
Test: Drop leading zero hexits.
StephanTLavavej 8da299b
Lift out the `_Is_constant_evaluated()` check.
StephanTLavavej e162d0d
Avoid C4127 instead of suppressing
CaseyCarter 50a5599
Fix thinko
CaseyCarter 5eb4dfa
Revert "Fix thinko"
CaseyCarter 19b311a
Merge pull request #7 from CaseyCarter/string_attached
AlexGuteniev 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
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
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
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
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
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.