Skip to content

[mypyc] Specialize bytes.decode calls with common encodings #19688

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
merged 2 commits into from
Aug 19, 2025

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Aug 19, 2025

This is similar to #18232, which specialized encode.

A micro-benchmark that calls decode repeatedly was up to 45% faster.

@JukkaL JukkaL merged commit 68809c0 into master Aug 19, 2025
13 checks passed
@JukkaL JukkaL deleted the mypyc-decode-literal branch August 19, 2025 13:32
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.

2 participants