Skip to content

[mypyc] Add a primitive for bytes "translate" method#20305

Merged
JukkaL merged 3 commits intomasterfrom
mypyc-bytes-translate
Nov 28, 2025
Merged

[mypyc] Add a primitive for bytes "translate" method#20305
JukkaL merged 3 commits intomasterfrom
mypyc-bytes-translate

Conversation

@JukkaL
Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL commented Nov 27, 2025

This only supports one-argument calls. In a microbenchmark the performance was significantly better for small inputs. It was also slightly better for long inputs, but only after I added a loop unrolling hint (on Apple Silicon and AMD + Linux).

I relied on LLM assist as another experiment, but did it in small increments with detailed instructions.

@JukkaL JukkaL merged commit 08a45e0 into master Nov 28, 2025
14 checks passed
@JukkaL JukkaL deleted the mypyc-bytes-translate branch November 28, 2025 09:24
@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