Skip to content

[mypyc] Add urlsafe_b64encode and urlsafe_b64decode to librt.base64#20274

Merged
JukkaL merged 10 commits into
masterfrom
mypyc-base64-5-urlsafe
Nov 20, 2025
Merged

[mypyc] Add urlsafe_b64encode and urlsafe_b64decode to librt.base64#20274
JukkaL merged 10 commits into
masterfrom
mypyc-base64-5-urlsafe

Conversation

@JukkaL

@JukkaL JukkaL commented Nov 20, 2025

Copy link
Copy Markdown
Collaborator

These just have a post-processing or a pre-processing step but otherwise share the implementation with the non-urlsafe variants. We can break the ABI since base64 functions are still experimental.

I checked that at least gcc and clang are able to vectorize the pre/post processing loops (when using -O3).

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JukkaL JukkaL merged commit 96fac3a into master Nov 20, 2025
21 checks passed
@JukkaL JukkaL deleted the mypyc-base64-5-urlsafe branch November 20, 2025 16:28
@github-project-automation github-project-automation Bot moved this from Todo to Done in GC-Content-Calculator Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants