-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
gh-144015: Add portable SIMD optimization for bytes.hex() #143991
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
Open
gpshead
wants to merge
16
commits into
python:main
Choose a base branch
from
gpshead:opt-pystrhex
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+258
−6
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
bbb4a8a
pystrhex: Add AVX2 SIMD optimization for hex conversion
gpshead 90da084
pystrhex: Add AVX-512 SIMD optimization for hex conversion
gpshead bdceb9c
pystrhex: Add ARM NEON SIMD optimization for hex conversion
gpshead 4f3d60d
pystrhex: Add SSE2 SIMD optimization for hex conversion
gpshead 015cc55
pystrhex: Remove AVX2/AVX-512, keep SSE2-only for simplicity
gpshead ae3d7be
pystrhex: Replace SSE2/NEON with portable SIMD using GCC vector exten…
gpshead a22e5ce
pystrhex: Add SIMD optimization for large separator groups
gpshead 2fe987c
measure more
gpshead e643fb8
pystrhex: Lower SIMD separator threshold to 8 bytes
gpshead 92c281d
pystrhex: Use signed comparison for efficient SIMD codegen
gpshead 190936f
pystrhex: Factor out scalar hexlify into shared inline function
gpshead b2dd34e
remove benchmark data
gpshead b6feaba
pystrhex: Enable SIMD on 32-bit ARM with NEON
gpshead 0f94c06
explain more in the comments
gpshead e8650f3
remove the microbenchmark code
gpshead 5fc294c
test_bytes: Add SIMD-specific test cases for bytes.hex()
gpshead 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
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.
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.
Is there any difference with the following?