ArrayLayouts.jl icon indicating copy to clipboard operation
ArrayLayouts.jl copied to clipboard

High package load time

Open jishnub opened this issue 2 years ago • 1 comments

julia> @time using ArrayLayouts
  2.144474 seconds (4.45 M allocations: 381.961 MiB, 17.67% compilation time)
julia> @time_imports using ArrayLayouts
    231.6 ms  FillArrays
   1527.5 ms  ArrayLayouts

Maybe the load time of this package can be improved

jishnub avatar Aug 08 '22 10:08 jishnub

julia> @time_imports using UnROOT
    121.1 ms  FillArrays
      1.9 ms  StaticArraysCore
    454.6 ms  StaticArrays
    920.9 ms  ArrayLayouts
    127.9 ms  MatrixFactorizations
     22.4 ms  MacroTools
     60.2 ms  LazyArrays

yeah impacting by this

Moelf avatar Sep 21 '22 20:09 Moelf

Extraordinarily, this appears to be almost entirely fixed on Julia v1.10. On v1.9

julia> @time using ArrayLayouts
  1.724388 seconds (3.18 M allocations: 301.312 MiB, 5.48% gc time)

On v1.10

julia> @time using ArrayLayouts
  0.190399 seconds (146.59 k allocations: 8.261 MiB)

jishnub avatar Aug 02 '23 14:08 jishnub