Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Make Package Load faster #177

Open
alecloudenback opened this issue Apr 11, 2024 · 2 comments
Open

Make Package Load faster #177

alecloudenback opened this issue Apr 11, 2024 · 2 comments

Comments

@alecloudenback
Copy link
Member

alecloudenback commented Apr 11, 2024

(@v1.10) pkg> activate --temp
  Activating new project at `/var/folders/ds/_tfd5bfd0bn51v_5xqxy821h0000gn/T/jl_Ey9COp`

julia> using Pkg

julia> @time Pkg.add("FinanceModels")
  2.605898 seconds (6.90 M allocations: 679.492 MiB, 4.80% gc time, 36.52% compilation time: 34% of which was recompilation)

julia> @time using FinanceModels
  1.909036 seconds (4.09 M allocations: 337.071 MiB, 3.66% gc time, 15.32% compilation time: 53% of which was recompilation)

julia> versioninfo()
Julia Version 1.10.2
Commit bd47eca2c8a (2024-03-01 10:14 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 8 × Apple M3
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1)
Threads: 4 default, 0 interactive, 2 GC (on 4 virtual cores)
Environment:
  JULIA_NUM_THREADS = auto
@alecloudenback
Copy link
Member Author

with #178, about 21% of the using time has been eliminated:

julia> @time using FinanceModels
  1.516557 seconds (2.96 M allocations: 192.880 MiB, 4.40% gc time, 22.95% compilation time: 59% of which was recompilation)

@alecloudenback
Copy link
Member Author

removing UnicodePlots does quite a bit:

julia> @time using FinanceModels
  1.024806 seconds (2.03 M allocations: 136.206 MiB, 5.04% gc time, 14.48% compilation time: 96% of which was recompilation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant