-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
longer compilation time in GMT.jl #44991
Comments
I found a more minimal reproducible example which might make debugging easier. With https://github.com/rikhuijzer/PrecompileSignatures.jl at commit
julia 1.7.2
julia 1.8-beta3
julia 1.9.0-DEV.428 commit 3cff21e
|
This code has been mostly replaced |
Sorry I never saw your ping, @JeffBezanson. GMT was heavily influenced by broadcasting-invalidation, which was an artifact of how we (mis)handled Fixed in #46010. |
1.8: julia> using GMT; @time @eval plot(rand(5,2))
8.072855 seconds (9.65 M allocations: 483.123 MiB, 2.79% gc time, 99.88% compilation time) 1.9-beta3: julia> using GMT; @time @eval plot(rand(5,2))
1.578212 seconds (3.39 M allocations: 221.354 MiB, 3.76% gc time, 97.21% compilation time) Could be improved further with more precompilation in GMT, but that's not a Julia issue. |
Pre #43990:
with #43990:
Using GMT master.
Reported here: https://discourse.julialang.org/t/package-load-time-regressions-in-v1-8-beta3/78875/3
From a quick look, all parts of the compiler appear to be doing more work so I think we are just compiling more methods, possibly consistent with there being more invalidations? @timholy Any insight into why this might happen?
The text was updated successfully, but these errors were encountered: