René's URL Explorer Experiment


Title: gh-144015: Add portable SIMD optimization for bytes.hex() by gpshead · Pull Request #143991 · python/cpython · GitHub

Open Graph Title: gh-144015: Add portable SIMD optimization for bytes.hex() by gpshead · Pull Request #143991 · python/cpython

X Title: gh-144015: Add portable SIMD optimization for bytes.hex() by gpshead · Pull Request #143991 · python/cpython

Description: Add SIMD optimization for bytes.hex(), bytearray.hex(), and binascii.hexlify() as well as hashlib .hexdigest() methods using portable GCC/Clang vector extensions that compile to native SIMD instruc...

Open Graph Description: Add SIMD optimization for bytes.hex(), bytearray.hex(), and binascii.hexlify() as well as hashlib .hexdigest() methods using portable GCC/Clang vector extensions that compile to native SIMD instruc...

X Description: Add SIMD optimization for bytes.hex(), bytearray.hex(), and binascii.hexlify() as well as hashlib .hexdigest() methods using portable GCC/Clang vector extensions that compile to native SIMD instruc...

Opengraph URL: https://github.com/python/cpython/pull/143991

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:9a3c1167-b1c8-62d9-a5be-08dbf074f695
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD248:6818:11E22DD:18D1EC7:696F4435
html-safe-nonceeef43b0b2eba024285e5d226cafa23165c0c86eab119c029847a1c9917cc43be
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjQ4OjY4MTg6MTFFMjJERDoxOEQxRUM3OjY5NkY0NDM1IiwidmlzaXRvcl9pZCI6IjY2OTg3MTM3OTMxNzczNjUwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfe905756d56580e0153a2c82118cca1a4373409c7cba3ce67353e75e3e516485
hovercard-subject-tagpull_request:3185138582
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/143991/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/dc9692585014710fa61a67c3b34a1b899199d7c221516320f90652c47ba0014e/python/cpython/pull/143991
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dc9692585014710fa61a67c3b34a1b899199d7c221516320f90652c47ba0014e/python/cpython/pull/143991
og:image:altAdd SIMD optimization for bytes.hex(), bytearray.hex(), and binascii.hexlify() as well as hashlib .hexdigest() methods using portable GCC/Clang vector extensions that compile to native SIMD instruc...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegpshead
hostnamegithub.com
expected-hostnamegithub.com
Noneb278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release39aed5006635ab6f45e6b77d23e73b08a00272a3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/143991#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F143991
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F143991
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/143991
Reloadhttps://github.com/python/cpython/pull/143991
Reloadhttps://github.com/python/cpython/pull/143991
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/143991
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.2k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/143991
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/143991#issue-comment-box
gpsheadhttps://github.com/gpshead
python:mainhttps://github.com/python/cpython/tree/main
gpshead:opt-pystrhexhttps://github.com/gpshead/cpython/tree/opt-pystrhex
gh-144015: Add portable SIMD optimization for bytes.hex() https://github.com/python/cpython/pull/143991#top
gpsheadhttps://github.com/gpshead
python:mainhttps://github.com/python/cpython/tree/main
gpshead:opt-pystrhexhttps://github.com/gpshead/cpython/tree/opt-pystrhex
Conversation 5 https://github.com/python/cpython/pull/143991
Commits 16 https://github.com/python/cpython/pull/143991/commits
Checks 47 https://github.com/python/cpython/pull/143991/checks
Files changed 2 https://github.com/python/cpython/pull/143991/files
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Jan 18, 2026https://github.com/python/cpython/pull/143991#issue-3826536498
Please reload this pagehttps://github.com/python/cpython/pull/143991
https://github.com/python/cpython/blob/0f94c061d49821a74096e57df8dff9617b80fad7/Tools/scripts/pystrhex_benchmark.pyhttps://github.com/python/cpython/blob/0f94c061d49821a74096e57df8dff9617b80fad7/Tools/scripts/pystrhex_benchmark.py
Speed up bytes.hex() and related pystrhex.c users using SIMD #144015https://github.com/python/cpython/issues/144015
Please reload this pagehttps://github.com/python/cpython/pull/143991
gpsheadhttps://github.com/gpshead
January 18, 2026 02:04https://github.com/python/cpython/pull/143991#commits-pushed-bbb4a8a
https://github.com/gpshead
https://github.com/claude
pystrhex: Add AVX2 SIMD optimization for hex conversionhttps://github.com/python/cpython/pull/143991/commits/bbb4a8a0a1570b57c10519bc71be016a5cdc8580
bbb4a8ahttps://github.com/python/cpython/pull/143991/commits/bbb4a8a0a1570b57c10519bc71be016a5cdc8580
https://github.com/gpshead
https://github.com/claude
pystrhex: Add AVX-512 SIMD optimization for hex conversionhttps://github.com/python/cpython/pull/143991/commits/90da084452868421540710639c10f32dff068dec
90da084https://github.com/python/cpython/pull/143991/commits/90da084452868421540710639c10f32dff068dec
https://github.com/gpshead
https://github.com/claude
pystrhex: Add ARM NEON SIMD optimization for hex conversionhttps://github.com/python/cpython/pull/143991/commits/bdceb9c6b3f7a674583908dcf78291e38f171a72
bdceb9chttps://github.com/python/cpython/pull/143991/commits/bdceb9c6b3f7a674583908dcf78291e38f171a72
https://github.com/gpshead
https://github.com/claude
pystrhex: Add SSE2 SIMD optimization for hex conversionhttps://github.com/python/cpython/pull/143991/commits/4f3d60dbd94870dda2ed09aaff90fcda7621189f
4f3d60dhttps://github.com/python/cpython/pull/143991/commits/4f3d60dbd94870dda2ed09aaff90fcda7621189f
https://github.com/gpshead
https://github.com/claude
pystrhex: Remove AVX2/AVX-512, keep SSE2-only for simplicityhttps://github.com/python/cpython/pull/143991/commits/015cc55fc6ddcae0345a242255040672ee4c4004
015cc55https://github.com/python/cpython/pull/143991/commits/015cc55fc6ddcae0345a242255040672ee4c4004
https://github.com/gpshead
https://github.com/claude
pystrhex: Replace SSE2/NEON with portable SIMD using GCC vector exten…https://github.com/python/cpython/pull/143991/commits/ae3d7be06f802b1dff64cbdddf58380f0c6ed11d
ae3d7behttps://github.com/python/cpython/pull/143991/commits/ae3d7be06f802b1dff64cbdddf58380f0c6ed11d
https://github.com/gpshead
https://github.com/claude
pystrhex: Add SIMD optimization for large separator groupshttps://github.com/python/cpython/pull/143991/commits/a22e5ce6fde77721a0e1c80558cf05348ed5b3b6
a22e5cehttps://github.com/python/cpython/pull/143991/commits/a22e5ce6fde77721a0e1c80558cf05348ed5b3b6
https://github.com/gpshead
measure morehttps://github.com/python/cpython/pull/143991/commits/2fe987cc8adafdc6209cf5323cc7aba8a4bb32ce
2fe987chttps://github.com/python/cpython/pull/143991/commits/2fe987cc8adafdc6209cf5323cc7aba8a4bb32ce
https://github.com/gpshead
https://github.com/claude
pystrhex: Lower SIMD separator threshold to 8 byteshttps://github.com/python/cpython/pull/143991/commits/e643fb8b297f559cca3816fb10bebdd3e18287d6
e643fb8https://github.com/python/cpython/pull/143991/commits/e643fb8b297f559cca3816fb10bebdd3e18287d6
https://github.com/gpshead
https://github.com/claude
pystrhex: Use signed comparison for efficient SIMD codegenhttps://github.com/python/cpython/pull/143991/commits/92c281da41598b21157485fdbef88df7cd251d9f
92c281dhttps://github.com/python/cpython/pull/143991/commits/92c281da41598b21157485fdbef88df7cd251d9f
https://github.com/gpshead
https://github.com/claude
pystrhex: Factor out scalar hexlify into shared inline functionhttps://github.com/python/cpython/pull/143991/commits/190936f44e855f74f819b238de188b40c7e0fec6
190936fhttps://github.com/python/cpython/pull/143991/commits/190936f44e855f74f819b238de188b40c7e0fec6
https://github.com/gpshead
remove benchmark datahttps://github.com/python/cpython/pull/143991/commits/b2dd34efbb0b015b9432274c8d6d28d1e880bda6
b2dd34ehttps://github.com/python/cpython/pull/143991/commits/b2dd34efbb0b015b9432274c8d6d28d1e880bda6
https://github.com/gpshead
https://github.com/claude
pystrhex: Enable SIMD on 32-bit ARM with NEONhttps://github.com/python/cpython/pull/143991/commits/b6feaba12002934b2a144bb5e804666dd8017e4b
b6feabahttps://github.com/python/cpython/pull/143991/commits/b6feaba12002934b2a144bb5e804666dd8017e4b
https://github.com/gpshead
explain more in the commentshttps://github.com/python/cpython/pull/143991/commits/0f94c061d49821a74096e57df8dff9617b80fad7
0f94c06https://github.com/python/cpython/pull/143991/commits/0f94c061d49821a74096e57df8dff9617b80fad7
https://github.com/gpshead
remove the microbenchmark codehttps://github.com/python/cpython/pull/143991/commits/e8650f3f0ba2ba3df01304a2603d6d55a96adc54
e8650f3https://github.com/python/cpython/pull/143991/commits/e8650f3f0ba2ba3df01304a2603d6d55a96adc54
https://github.com/gpshead
https://github.com/claude
test_bytes: Add SIMD-specific test cases for bytes.hex()https://github.com/python/cpython/pull/143991/commits/5fc294c7052cf2a239e3846a9e7e1ade17bd95ab
5fc294chttps://github.com/python/cpython/pull/143991/commits/5fc294c7052cf2a239e3846a9e7e1ade17bd95ab
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Jan 18, 2026https://github.com/python/cpython/pull/143991#event-22120744907
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Jan 18, 2026https://github.com/python/cpython/pull/143991#event-22120790395
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Jan 18, 2026https://github.com/python/cpython/pull/143991#issuecomment-3765090800
@gpsheadhttps://github.com/gpshead
5fc294chttps://github.com/python/cpython/commit/5fc294c7052cf2a239e3846a9e7e1ade17bd95ab
https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F143991%2Fmergehttps://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F143991%2Fmerge
Please reload this pagehttps://github.com/python/cpython/pull/143991
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Jan 18, 2026https://github.com/python/cpython/pull/143991#event-22120790543
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Jan 18, 2026https://github.com/python/cpython/pull/143991#issuecomment-3765595851
Please reload this pagehttps://github.com/python/cpython/pull/143991
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Jan 18, 2026https://github.com/python/cpython/pull/143991#event-22123801974
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jan 18, 2026 https://github.com/python/cpython/pull/143991#ref-issue-3827160096
Speed up bytes.hex() and related pystrhex.c users using SIMD #144015 https://github.com/python/cpython/issues/144015
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
January 18, 2026 19:01https://github.com/python/cpython/pull/143991#event-22123818829
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jan 18, 2026https://github.com/python/cpython/pull/143991#event-22123819113
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
serhiy-storchakahttps://github.com/serhiy-storchaka
Jan 18, 2026https://github.com/python/cpython/pull/143991#event-22123953295
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Jan 19, 2026 https://github.com/python/cpython/pull/143991#pullrequestreview-3677903054
View reviewed changes https://github.com/python/cpython/pull/143991/files/5fc294c7052cf2a239e3846a9e7e1ade17bd95ab
serhiy-storchakahttps://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/143991#pullrequestreview-3677903054
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/143991
Python/pystrhex.chttps://github.com/python/cpython/pull/143991/files/5fc294c7052cf2a239e3846a9e7e1ade17bd95ab#diff-af47231ac9399b1a2d9f947acc7d70267247dcd182c43dfc1c8a60832c5e64f1
serhiy-storchakahttps://github.com/serhiy-storchaka
Jan 19, 2026https://github.com/python/cpython/pull/143991#discussion_r2704604015
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/143991
https://github.com/ndren
ndrenhttps://github.com/ndren
Jan 19, 2026https://github.com/python/cpython/pull/143991#issuecomment-3770411180
Godbolthttps://godbolt.org/z/fMjGEz3n3
Please reload this pagehttps://github.com/python/cpython/pull/143991
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F143991
https://github.com/serhiy-storchaka
serhiy-storchaka https://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/143991/files/5fc294c7052cf2a239e3846a9e7e1ade17bd95ab
https://github.com/gpshead
gpshead https://github.com/gpshead
https://github.com/serhiy-storchaka
serhiy-storchaka https://github.com/serhiy-storchaka
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Please reload this pagehttps://github.com/python/cpython/pull/143991
https://github.com/gpshead
https://github.com/bedevere-bot
https://github.com/ndren
https://github.com/serhiy-storchaka
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.