-
-
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
Loading packages is significantly slower on recent master than on 1.9 beta and 1.8 #48811
Comments
tldr:
exec 0
import CairoMakie
CairoMakie.plot
|
We made the condition to bail out call inference a bit more strict in #48263 by looking at the inferred effects. It turns out that it slows down package loading time as reported at #48811. This commit simply remove the condition. In particular, the loading time of `CairoMakie` is reduced to 40s from 48s (on master). External `AbstractInterpreter` can use the current condition by overloading `bail_out_call`.
I can't reproduce this:
For reference:
|
Can you reproduce anything using the commits identified in the bisect above? |
On the recent master (1944ef6) I get:
With some workload
So the situation has improved indeed, still a bit slower than on These tests were made on |
I cannot reproduce this on Linux:
The first one is current master (Version 1.10.0-DEV.1292 (2023-05-14)), the second one Julia 1.9. Can this issue be closed? |
A lot of work has been done on load times but it doesn't mean that the regressions identified in #48811 (comment) are fixed. |
I don't think any of those commits are expected to be "fixed" more. The GC did have an error that was fixed and possibly related. But the others were supposed to replace fast path code with better inference results, so seem to be working as intended when we merged those. |
@KristofferC Can this issue be closed? If not, what would be the action points? |
I'm not sure if this is something known, but I noticed quite a noticable regression on the recent master (built from source today). Julia 1.9-beta includes an awesome feature that precompiles packages better, thus reducing load times. For packages such as
Plots
andCairoMakie
I observe almost twice faster startup times on my machine. This improvement, however, is no longer present on the recent master.Here
./julia
is the compiledmaster
binary.The loading time of
CairoMakie
is actually even slower than on the current release.Same is happening for the
Plots
I executed each command at least 3-4 times, just to ensure everything is precompiled. The pattern repeats, the
master
is always slower than1.8
and1.9-beta
.These are timings with some "workload":
With some workload timings for the
master
are better than on1.8
, but still worse than on the1.9-beta
(especially forCairoMakie
).versions:
+release
installed fromjuliaup
+1.9
installed fromjuliaup
master
built from source with justgit clone
&make
. No special configuration.The text was updated successfully, but these errors were encountered: