-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Import latency issue #324
Comments
I have default similar numbers. However, using timholy/SnoopCompile.jl#334, on $ julia
julia> using SnoopPrecompile, Preferences
julia> Preferences.set_preferences!(SnoopPrecompile, "skip_precompile" => ["UnicodePlots"])
julia> exit(0)
$ julia -e 'using UnicodePlots' # trigger precompilation with a reduced workload
$ julia
julia> @time @time_imports using UnicodePlots
29.5 ms Preferences
0.2 ms SnoopPrecompile
0.9 ms Statistics
3.3 ms StaticArraysCore
900.5 ms StaticArrays
60.6 ms FixedPointNumbers
126.4 ms ColorTypes 26.56% compilation time (85% recompilation)
35.2 ms Crayons
1.4 ms ConstructionBase
1194.2 ms Unitful
1.6 ms DataAPI
0.2 ms Compat
10.8 ms OrderedCollections
115.9 ms DataStructures
0.6 ms SortingAlgorithms
14.8 ms Missings
2.9 ms DocStringExtensions
124.3 ms ChainRulesCore
1.0 ms ChangesOfVariables
1.1 ms InverseFunctions
7.6 ms IrrationalConstants
0.8 ms LogExpFunctions
0.4 ms StatsAPI
35.5 ms StatsBase
86.8 ms MarchingCubes
0.3 ms Reexport
297.3 ms Colors
0.5 ms OpenLibm_jll
0.3 ms JLLWrappers
7.1 ms OpenSpecFun_jll 90.91% compilation time
71.9 ms SpecialFunctions
0.5 ms TensorCore
239.6 ms ColorVectorSpace 5.82% compilation time (91% recompilation)
11.8 ms ColorSchemes
0.2 ms Requires
0.3 ms NaNMath
1.8 ms Contour
206.1 ms FileIO
0.6 ms Bzip2_jll
0.2 ms Zlib_jll
0.4 ms FreeType2_jll
5.5 ms CEnum
8.0 ms FreeType
144.9 ms UnicodePlots
4.025836 seconds (5.26 M allocations: 346.759 MiB, 6.95% gc time, 6.02% compilation time: 17% of which was recompilation)
I would say precompiled code loading. You can also disable this workload using |
UnicodePlots.jl/src/UnicodePlots.jl Lines 145 to 171 in a1f759c
this is too much I think, you probably want to condense down, it's like a 20/80 rule I guess |
I notice UnicodePlots has the largest load time of all the many dependencies of MLJ, which surprised me. See also JuliaAI/CategoricalDistributions.jl#49 |
Closing in favor of #335, since I believe that the |
what's causing the 1.8s just by UnicodePlots?
The text was updated successfully, but these errors were encountered: