Skip to content

Regression in package loading on Windows starting in Julia 1.10.0-rc2 #52711

@jaakkor2

Description

@jaakkor2

There seems to be a regression in some package loading times and allocations on Windows that started between 1.10.0-rc1 and 1.10.0-rc2. Linux seems to be unaffected.

All binaries are official, from juliaup on Windows and https://julialang.org/downloads/ on Linux. Julia is started with --startup-file=no.

Linux

julia> @time using Makie # Linux, Julia 1.10.0-rc1, Makie 0.20.3
  3.555613 seconds (2.49 M allocations: 167.027 MiB, 3.49% gc time, 1.44% compilation time: 53% of which was recompilation)

julia> @time using Makie # Linux, Julia 1.10.0, Makie 0.20.3
  3.644380 seconds (2.51 M allocations: 168.201 MiB, 2.23% gc time, 1.84% compilation time: 50% of which was recompilation)

Windows

julia> @time using Makie # Windows, Julia 1.10.0-rc1, Makie 0.20.3
  2.182203 seconds (2.55 M allocations: 170.186 MiB, 2.63% gc time, 1.59% compilation time: 46% of which was recompilation)

julia> @time using Makie # Windows, Julia 1.10.0-rc2, Makie 0.20.3
  2.516064 seconds (3.21 M allocations: 216.767 MiB, 2.54% gc time, 14.87% compilation time: 95% of which was recompilation)

julia> @time using Makie # Windows, Julia 1.10.0, Makie 0.20.3
  2.529594 seconds (3.20 M allocations: 215.536 MiB, 2.61% gc time, 14.74% compilation time: 95% of which was recompilation)
julia> @time using Graphs # Windows, Julia 1.10.0-rc1, Graphs 1.9.0
  0.419079 seconds (511.44 k allocations: 34.292 MiB, 1.76% compilation time)

julia> @time using Graphs # Windows, Julia 1.10.0-rc2, Graphs 1.9.0
  0.547158 seconds (698.31 k allocations: 47.068 MiB, 6.43% gc time, 24.97% compilation time: 95% of which was recompilation)
julia> @time using StaticArrays, SparseArrays # Windows, Julia 1.10.0-rc1, StaticArrays 1.9.0, SparseArrays 1.10.0
  0.353384 seconds (463.29 k allocations: 30.355 MiB, 2.10% compilation time)

julia> @time using StaticArrays, SparseArrays # Windows, Julia 1.10.0-rc2, StaticArrays 1.9.0, SparseArrays 1.10.0
  0.483263 seconds (649.90 k allocations: 43.212 MiB, 7.07% gc time, 27.88% compilation time: 95% of which was recompilation)

Some packages does not show this, for example OrdinaryDiffEq. Also not shown by using SparseArrays, StaticArrays.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions