Skip to content

Conversation

@JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Dec 8, 2025

These made two microbenchmarks 1.3x to 4.4x faster. Make it possible to inline some functions, and support a faster calling convention by linking the C function for write statically.

This means that we can't change the internal representation of BytesWriter without breaking backward compatibility after we make BytesWriter non-experimental.

@JukkaL JukkaL changed the title [mypyc] Inline BytesWriter append, write and len operations [mypyc] Speed up BytesWriter append, write and len operations Dec 8, 2025
@JukkaL JukkaL merged commit 9bcb18e into master Dec 9, 2025
16 checks passed
@JukkaL JukkaL deleted the mypyc-bytes-builder-3-inline branch December 9, 2025 13:55
@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