Repository navigation
Give the frontend a larger nursery - #120
Merged
Merged
Conversation
added 3 commits
October 31, 2026 17:34
Measured on 4800 methods, alternating runs: GC went from 3.05 s to 1.60 s at the median, the whole frontend from 7.58 s to 4.61 s, and total memory stayed at about 340 MiB, since 4 MiB chunks keep a large nursery from raising what the process touches.
RtsAPI.h does not stand alone: it needs the types Rts.h defines.
Publishing the bundle failed on two CI runs with Access is denied: the smoke tests have just run its programs, and Windows keeps their files busy for a moment. The rename now tries again for up to ten seconds, on that error alone.
Contributor
Author
|
Self-review of the later commit: |
Merged
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.
Starts the frontend RTS with
-A64m -n4minstead of the default 4 MiB nursery.The frontend grows linearly with the program, so there was no quadratic path to fix, and GC was about a third of its time. The AST stays live, so the small nursery kept collecting and copying it.
Six alternating runs on a generated program of 13 sources and about 4800 methods, optimized talac,
--emit=core, on a noisy machine:-A64m -n4m-A64mwithout-n4mshowed no clear gain in single runs, and-O512madded nothing.tala-compilertests pass on Windows, and the generated program builds and runs.talishares this library, so it gets the same nursery.Self-review:
rts_optsis the same channel as-with-rtsopts, so it needs norts_opts_enabledchange and users still cannot pass RTS flags.Rts.hreplacesHsFFI.h, which it includes, and is needed becauseRtsAPI.hdoes not stand alone. It prints deprecated-volatile warnings from GHC's own headers in C++20, which do not fail the build. Linux and macOS are left to CI.