Repository navigation
Faster builds: auto-split from 32 MB, compiler without the cycle collector, cheaper type inference - #386
Merged
Conversation
…walk for bodies without a closure literal
…le-body walk per function round
…k/if arms ahead of rare ones
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.
Why
Profiling
manticore-fmt(60 MB IR) andsymfony-app(876 MB IR) showed ~80% of fmt build time in a single serialclang -O2, and a frontend dominated by repeated full type-inference runs (InferTypes ~43% of frontend; each run costs 0.9-2.7 s even when it changes few functions).What
AUTO_SPLIT_MIN_BYTES128 MB -> 32 MB: application modules above 32 MB are split into parts automatically (available_externallycopies keep cross-part inlining).bin/buildexportsMANTICORE_AUTO_SPLIT=0, so the compiler itself stays one translation unit and its output is unchanged.bin/buildexportsMANTICORE_AUTO_GC=0: the compiler is baked without the automatic cycle collector.walkLocalFacts; orderinferNodekind dispatch by frequency.Measured
237 of 310 files).cmp) for both fmt apps after each commit.Investigated, not shipped
Skipping closing full InferTypes rounds changes IR (not redundant); scoped re-inference is neither equivalent nor faster; no sound class-level gate for reflection trampolines on Symfony-class programs.
Not run
Full AOT suite, difftest, Linux gate, peak RSS on symfony-app with the collector off. Targeted:
-k narrow11/11,-k mono5/5,-k closure94/94;bin/buildgreen.