Skip to content

refactor: reduce interned constructor monomorphization#1208

Draft
MichaReiser wants to merge 11 commits into
salsa-rs:masterfrom
MichaReiser:reduce-interned-new-monomorphization
Draft

refactor: reduce interned constructor monomorphization#1208
MichaReiser wants to merge 11 commits into
salsa-rs:masterfrom
MichaReiser:reduce-interned-new-monomorphization

Conversation

@MichaReiser

@MichaReiser MichaReiser commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Moves interned shard construction behind a non-generic helper so the compiler emits the OnceLock and iterator machinery once instead of per configuration.

Relative to #1204, using LLVM IR for ty_python_semantic drops from 3,988,276 to 3,921,670 lines: 66,606 fewer (-1.67%).

This PR is stacked on #1204, which makes the constructor independent of C.

Ready for review once 1204 lands

Testing: Focused tests, formatting, LLVM-line analysis, and CodSpeed simulation passed.

@netlify

netlify Bot commented Jun 28, 2026

Copy link
Copy Markdown

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit 24b23e9
🔍 Latest deploy log https://app.netlify.com/projects/salsa-rs/deploys/6a41419313ac9e0008018fca

@MichaReiser MichaReiser added the refactoring Code works but is messy label Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Code works but is messy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant