Skip to content

Reduce load time? #416

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
gdalle opened this issue Aug 19, 2024 · 3 comments
Closed

Reduce load time? #416

gdalle opened this issue Aug 19, 2024 · 3 comments
Labels
core Related to the core utilities of the package
Milestone

Comments

@gdalle
Copy link
Member

gdalle commented Aug 19, 2024

At the moment the main culprit is SparseArrays. I can get rid of it except for DenseSparsityDetector.

julia> @time_imports using DifferentiationInterface
      2.6 ms  ADTypes
      0.5 ms  Compat
      0.2 ms  Compat → CompatLinearAlgebraExt
               ┌ 0.0 ms DocStringExtensions.__init__() 
     29.7 ms  DocStringExtensions 95.35% compilation time
     40.9 ms  FillArrays
      0.2 ms  PackageExtensionCompat
               ┌ 0.7 ms SuiteSparse_jll.__init__() 
      0.9 ms  SuiteSparse_jll
               ┌ 7.5 ms SparseArrays.CHOLMOD.__init__() 96.44% compilation time
    302.8 ms  SparseArrays 2.39% compilation time
      2.9 ms  FillArrays → FillArraysSparseArraysExt
     27.3 ms  DataStructures
      1.2 ms  SparseMatrixColorings
               ┌ 0.0 ms DifferentiationInterface.__init__() 
      3.5 ms  DifferentiationInterface
@gdalle
Copy link
Member Author

gdalle commented Aug 19, 2024

Moving the sparse AD code into an extension is possible (see #417) but breaking so not right now.

@gdalle
Copy link
Member Author

gdalle commented Sep 5, 2024

SparseArrays solved by #448

@gdalle
Copy link
Member Author

gdalle commented Sep 8, 2024

DocString extensions removed by #450 and FillArrays removed by #453. This package is now as pure as can be

@gdalle gdalle closed this as completed Sep 8, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
core Related to the core utilities of the package
Projects
None yet
Development

No branches or pull requests

1 participant