I was checking how long some packages were taking to load (as KomaMRI is taking around 3s to load), and I got the following results:
julia> @time using KomaMRI # This is a lot! around 1.4s is just loading MRIReco
3.354859 seconds (6.92 M allocations: 351.951 MiB, 5.74% gc time, 13.79% compilation time: 26% of which was recompilation)
julia> @time using KomaMRICore # Base simulation package
0.688178 seconds (906.46 k allocations: 59.652 MiB, 2.81% gc time, 20.73% compilation time: 78% of which was recompilation)
Here, I just showed the packages that take more than 100ms to load (using @time_imports).
It may be worth considering moving some to a package extension. I would be happy to help, but I need an overall idea of why each package is needed.
LowRankApprox.jl is the heaviest, so that would be a good one to target or Distributions.jl. I believe that Unitful.jl could probably be easily moved to a package extension.
I was checking how long some packages were taking to load (as KomaMRI is taking around 3s to load), and I got the following results:
Here, I just showed the packages that take more than 100ms to load (using
@time_imports
).It may be worth considering moving some to a package extension. I would be happy to help, but I need an overall idea of why each package is needed.
LowRankApprox.jl
is the heaviest, so that would be a good one to target orDistributions.jl
. I believe thatUnitful.jl
could probably be easily moved to a package extension.