Skip to content

Large load time #651

@MilesCranmer

Description

@MilesCranmer

Trying to make SymbolicRegression.jl have a faster startup time. On 1.11.6 it seems SparseArrays.jl accounts for a decent chunk of the load time. Here's the breakdown of the biggest contributors (launched from REPL) -

Package Time (ms) Notes
Pkg 180.1 0.0 ms init
SparseArrays 116.5 Includes SuiteSparse_jll (18.8 ms), CHOLMOD init (6.1 ms), 3.42% compilation
Pkg → REPLExt 81.4 0.4 ms init
DynamicQuantities 61.1
Distributed 57.9 0.0 ms init, 88.13% compilation
DynamicExpressions 38.1
FillArrays 26.7
ForwardDiff 18.8
Downloads 17.4 4.0 ms Curl init
CompilerSupportLibraries_jll 16.3 12.8 ms init
DataStructures 13.0
Dates 12.7 484.73% compilation
julia> @time_imports using SparseArrays
               ┌ 12.7 ms SuiteSparse_jll.__init__()
     98.4 ms  SuiteSparse_jll 83.64% compilation time
      1.4 ms  Serialization
               ┌ 5.8 ms SparseArrays.CHOLMOD.__init__() 73.45% compilation time
     96.0 ms  SparseArrays 4.45% compilation time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions