Skip to content

[JuliaLowering] Add precompile workload for generators, kwargs, etc.#62306

Merged
topolarity merged 1 commit into
JuliaLang:masterfrom
topolarity:ct/extra-JL-precompile
Jul 10, 2026
Merged

[JuliaLowering] Add precompile workload for generators, kwargs, etc.#62306
topolarity merged 1 commit into
JuliaLang:masterfrom
topolarity:ct/extra-JL-precompile

Conversation

@topolarity

Copy link
Copy Markdown
Member

@mlechu We may want to gate this on DEBUG, but this improves lowering time from ~20+ seconds to 0.53 s on a similar test package (StaticArrays / IntervalArithmetic are the motivation)

This is enough to dramatically reduce the lowering time for
StaticArrays.jl and IntervalArithmetic.jl.

@mlechu mlechu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge if it helps your workflow. I probably precompile more often than I use this code, but can easily revert it locally if it becomes a problem.

_precompile_usemac(3)
_precompile_genf(1.0)
"""
include_string(@__MODULE__, workload, @__FILE__)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would also be fine to migrate the thunks code above to the include_string approach.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to merge this as-is, since tweaks would need a re-measurement and PkgEval seems pretty happy with this configuration (we are <~2x flisp to lower most packages w/ #62302 - only a couple of poorly scaling exceptions)

@topolarity

Copy link
Copy Markdown
Member Author

x86_64-apple-darwin timeout is not related, merging

@topolarity
topolarity merged commit 691882b into JuliaLang:master Jul 10, 2026
5 of 10 checks passed
@Keno

Keno commented Jul 11, 2026

Copy link
Copy Markdown
Member

@topolarity this appears to have failed on CI on master

@topolarity

Copy link
Copy Markdown
Member Author

@topolarity this appears to have failed on CI on master

merge conflict w/ #62221 (sort of) - just merged #62302 to fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants