Skip to content

Inline common name-mangling checks - #1329

Merged
charliermarsh merged 1 commit into
mainfrom
charlie/codex-inline-common-name-mangling-20261018
Oct 18, 2026
Merged

charliermarsh merged 1 commit into
mainfrom
charlie/codex-inline-common-name-mangling-20261018

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

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.

@charliermarsh
charliermarsh merged commit 59a148f into main Oct 18, 2026
14 checks passed
@charliermarsh
charliermarsh deleted the charlie/codex-inline-common-name-mangling-20261018 branch October 18, 2026 08:58
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.

1 participant