Skip to content

[mypyc] hide internal symbols - #22269

Merged
JukkaL merged 1 commit into
python:masterfrom
hauntsaninja:visibility
Oct 30, 2026
Merged

JukkaL merged 1 commit into
python:masterfrom
hauntsaninja:visibility

Conversation

@hauntsaninja

@hauntsaninja hauntsaninja commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Codex claims this is about a 4% speed-up on self check on Linux, looks like it washes out on self check on my macOS laptop

Authored by Codex

Codex claims this is about a 5% speed-up on self check on Linux

Authored by Codex

@JukkaL JukkaL left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I verified that self-check performance improves by 4% on Linux -- amazing!

@JukkaL
JukkaL merged commit 8c5f571 into python:master Oct 30, 2026
18 checks passed
@hauntsaninja

hauntsaninja commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator Author

On our benchmarking infra, this is an 8.8% improvement: https://github.com/mypyc/mypyc-benchmark-results/blob/master/reports/benchmarks/mypy_self_check.md

It's also nice that this should generalise to a lot of other mypyc compiled programs

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