Skip to content

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

Merged
JukkaL merged 2 commits into
masterfrom
mypyc-decode-literal
Aug 19, 2025
Merged

[mypyc] Specialize bytes.decode calls with common encodings#19688
JukkaL merged 2 commits into
masterfrom
mypyc-decode-literal

Conversation

@JukkaL

@JukkaL JukkaL commented Aug 19, 2025

Copy link
Copy Markdown
Collaborator

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