Repository navigation
Inline common name-mangling checks - #1329
Merged
charliermarsh merged 1 commit intoOct 18, 2026
Merged
Conversation
charliermarsh
deleted the
charlie/codex-inline-common-name-mangling-20261018
branch
October 18, 2026 08:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We keep ordinary-name checks in a small inlineable function and separate the remaining private-name mangling logic. Name spellings and borrowed-versus-owned results are unchanged.
Matched project profiles use 0.37-0.51% fewer instructions for Mypy across the sampled Python 3.12-3.15 configurations, 0.31% fewer for SymPy and 0.47% fewer for Django on Python 3.15 O2. The 177-case instruction geometric mean improves by 0.11%. All measured project outputs are byte-identical.
Native CPU time decreases 1.72% for Mypy and 0.94% for Django, improving in both measurement orders for each project. SymPy native CPU timing is near-flat and order-sensitive; we make no native speed claim for SymPy. Peak RSS is effectively unchanged for all three projects. Each study retains all 120 measured samples, with three Mypy timing warnings, no SymPy or Django warnings and no exclusions.
The Python 3.12-3.15 compatibility matrix passes at all three optimization levels, with unchanged byte-exact results.