Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
37.2k
Star
77.4k
Code
Issues
5k+
Pull requests
2.7k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
gh-124951: Optimize base64 encode & decode for an easy 2-3x speedup [no SIMD]
- #143262
#143262
Merged
gpshead
merged 13 commits into
python:main
python/cpython:main
from
gpshead:opt-base64-cpu
gpshead/cpython:opt-base64-cpu
Copy head branch name to clipboard
Jan 2, 2026
Conversation
Commits
13
(13)
Checks
Files changed
Merged
gh-124951: Optimize base64 encode & decode for an easy 2-3x speedup [no SIMD]
#143262
gpshead
merged 13 commits into
python:main
python/cpython:main
from
gpshead:opt-base64-cpu
gpshead/cpython:opt-base64-cpu
Copy head branch name to clipboard
Commits
Commits on Dec 29, 2025
Add base64 benchmark tool and optimize encoding/decoding
Show description for 2d2be30
gpshead
and
claude
committed
2d2be30
View commit details
Copy full SHA for 2d2be30
Browse repository at this point
Fix MSVC build: move table_b2a_base64 before inline functions
Show description for 573eaf3
gpshead
and
claude
committed
573eaf3
View commit details
Copy full SHA for 573eaf3
Browse repository at this point
NEWS entry
gpshead
committed
eaac671
View commit details
Copy full SHA for eaac671
Browse repository at this point
Add a whatsnew entry
gpshead
committed
060dbf5
View commit details
Copy full SHA for 060dbf5
Browse repository at this point
expose the benchmark defaults in the help text.
Show description for 1e12273
gpshead
and
picnixz
authored
1e12273
View commit details
Copy full SHA for 1e12273
Browse repository at this point
Align base64 tables to 64-byte cache line boundaries
Show description for ef38895
gpshead
and
claude
committed
ef38895
View commit details
Copy full SHA for ef38895
Browse repository at this point
Use BASE64_PAD macro instead of literal '=' in fast path
Show description for 7458c99
gpshead
and
claude
committed
7458c99
View commit details
Copy full SHA for 7458c99
Browse repository at this point
Simplify block comment for base64 helpers
Show description for 1f8ff74
gpshead
and
claude
committed
1f8ff74
View commit details
Copy full SHA for 1f8ff74
Browse repository at this point
Remove binasciibench in favor of pyperformance bm_base64 addition PR.
gpshead
committed
4b1245b
View commit details
Copy full SHA for 4b1245b
Browse repository at this point
Commits on Jan 2, 2026
reword L1 cache line comment
gpshead
committed
4b50c73
View commit details
Copy full SHA for 4b50c73
Browse repository at this point
doc Contributed by
gpshead
committed
f7b27ee
View commit details
Copy full SHA for f7b27ee
Browse repository at this point
Remove redundant PAD check in base64 decode fast path
Show description for 2b13b81
gpshead
and
claude
committed
2b13b81
View commit details
Copy full SHA for 2b13b81
Browse repository at this point
Use pointer increment in base64_encode_fast
Show description for 30976a9
gpshead
and
claude
committed
30976a9
View commit details
Copy full SHA for 30976a9
Browse repository at this point
You can’t perform that action at this time.