-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Loading CSV makes tab completion in the REPL extremely slow #34098
Comments
See also: JuliaData/CSV.jl#537 |
Weird, on my 1.3.1 backport branch built locally it only takes 0.4 seconds... But downloading the binary from the buildbot with the same commit, it takes 30 seconds! |
Ok, Jameson helped me figured that one out. The binary from the buildbot has asserts on so it is slower (significantly so in this particular case). |
Ok, this seems fixed on 1.3.1 and master so I guess good to close 🤷♂ . |
@KristofferC I'm still seeing this behavior on 1.3.1 (macOS). Is this just an inevitable consequence of asserts always being enabled? |
I'll try it again |
Yes, this does indeed happen on 1.3.1 release. Strange, maybe julia asserts are accidentally enabled for releases(!)? |
And now it seems to happen when building 1.3.1 locally as well so maybe it isn't about asserts. I have no idea what is going on, would be good for someone else to do some testing, perhaps I am just crazy. |
Still happens in 1.4 RC1.
(different machine so numbers not directly comparable). |
Possibly related: https://discourse.julialang.org/t/slowdown-after-package-load/33533 The weirdest part is that julia> using AbstractMCMC, AxisArrays, DataFrames, Distributions, KernelDensity, LinearAlgebra, Random, RecipesBase, Serialization, Showoff, SpecialFunctions, Statistics, StatsBase
julia> using MCMCChains then it's fine. |
Yeah, I have also noticed differences depending on order of package loads. The weird thing here is that I had julia builds when the case here didn't exist at all so there seems to be some pathological case that causes this to happen. |
Some kind of lead? JuliaData/CSV.jl#537 (comment)
|
For me with the latest nightly, this is fixed on my Skylake Xeon, but on an AArch64 tablet, I'm still seeing a >1 minute delay for the first tab completion after loading CSV.jl. Same versions of Julia and packages on both systems. |
Doing
using CSV
and thenfoo("<TAB
in the REPL makes the REPL lag for ~10 seconds. Running with--trace-compile
and timing the different precompile statement there is one that takes 10(!) seconds to run. MWE is:Entering the Pkg REPL also takes like 20 seconds after using CSV.
The text was updated successfully, but these errors were encountered: