JLD.jl
JLD.jl copied to clipboard
"using JLD" cost 16 seconds?
After I updated JLD to the newest v0.8.3, I found "using JLD" is very slow, even it not running for the first time (so it should already be precompiled).
julia> @time using HDF5
0.338427 seconds (158.00 k allocations: 9.132 MiB)
julia> @time using JLD
15.720754 seconds (8.49 M allocations: 485.360 MiB, 1.97% gc time)
It used to be much faster, but I'm not sure whether the slowing-down is due to the updating of JLD package, or due to the updating of Julia (v0.6.0->v0.6.1), as I updated both simultaneously and then found this problem.
I can't reproduce this on 0.6.1 (Linux):
julia> @time using HDF5
0.337249 seconds (168.23 k allocations: 9.322 MiB, 2.44% gc time)
julia> @time using JLD
4.535577 seconds (2.70 M allocations: 153.442 MiB, 0.85% gc time)
unless 4.5s is also "slow".
I can reproduce this problem on macOS,
julia> @time using HDF5
0.415766 seconds (227.81 k allocations: 12.983 MiB)
julia> @time using JLD
9.374953 seconds (2.00 M allocations: 117.350 MiB, 2.48% gc time)