-
-
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
v1.11 generates 50% larger cache files #53570
Comments
Looks like, partly, new invalidations in |
Maybe similar to #53511 ? |
Would be interesting to put back all stdlibs into the sysimage and re-time this to see if the effect is purely for moving out stdlibs or if there are other reasons as well. |
We should consider building this and releasing it as an artifact. It would be using at least for testing and some loading sensitive applications as well. |
Worst offender in the precompiled size I have seen is https://github.com/Gnimuc/GLTF.jl. v1.11.0-beta1 (211 MB) is about 5x bigger than v1.10.3 (43 MB). |
As you showed in quinnj/JSON3.jl#279, the issue there seems to be egregious use of |
This seems to be more or less fixed on 1.11 backport branch. This is using the master branch of GMT.jl: julia> @time using GMT
0.638436 seconds (668.47 k allocations: 51.051 MiB, 5.54% gc time, 2.08% compilation time)
julia> VERSION
v"1.10.3" julia> @time using GMT
0.657463 seconds (730.44 k allocations: 49.958 MiB, 1.27% gc time, 1.48% compilation time)
julia> VERSION
v"1.11.0-beta1.40" |
But the precompiled image is still ~50% larger. |
I did some time ago ans spent quite some effort trying to improve the situation (forgot many of the details). But now I can't even use that package anymore.
But note that this cache size issue is common to other packages. For example Makie cache is 60% larger in 1.11 vs 1.10 |
That last error is due to #49866 in which the signature of an internal method was changed, which is used by PkgCacheInspector.jl. Should be straightforward to fix, will make a PR later. |
1.11:
1.10:
Haven't done any more analysis than that. Seems a bit strange that 1.11 has way fewer specializations but still larger file size. |
@joa-quim Please update |
Thanks. It works now ... but only once. Anyway, I don't know how to use the info to understand what makes the cache file so big.
|
THe compile time is quite variable but the differences are comparable to this.
v1.11 cache file -> ~89.5 MB
v1.10 -> ~59.5 Mb
Load times
The text was updated successfully, but these errors were encountered: