julia icon indicating copy to clipboard operation
julia copied to clipboard

Slow/delays in REPL upon start

Open albinahlback opened this issue 1 year ago • 3 comments

Did not experience this in Julia 1.10.X, but now with 1.11.0-beta1, I get delays/stuttering/slowness when opening the Pkg-mode in the Julia REPL.

This sort of sequence demonstrates when I get delays:

$ julia

julia>                      # Opening Julia is quite slow, but no change here
julia> writing_some_stuff   # No delay with autocompletion or anything

(@v1.11) pkg>               # **Very** slow to open Pkg REPL-mode
(@v1.11) pkg> dev           # Starting to write "dev PACKAGE", delay after writing 'd'
(@v1.11) pkg> dev PACKAGE   # Initial delay after writing 'P', maybe 'A' as well

(@v1.11) pkg> help          # Very slow to complete this command

(@v1.11) pkg> dev PACKAGE   # The second time it is fast again
(@v1.11) pkg> help          # The second time it is fast again

Here is my versioninfo():

Julia Version 1.11.0-beta1
Commit 08e1fc0abb9 (2024-04-10 08:40 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 4 × Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores)
Environment:
  LD_INCLUDE_PATH = :/home/albin/cbuilds/include:/home/albin/cbuilds/include:/home/albin/cbuilds/include
  LD_LIBRARY_PATH = :/home/albin/cbuilds/lib:/home/albin/cbuilds/lib:/home/albin/cbuilds/lib

albinahlback avatar Apr 26 '24 14:04 albinahlback

(@v1.11) pkg> # Very slow to open Pkg REPL-mode

How slow is *VERY*? Pkg was changed to be lazy-loaded, so some delay is expected. On my machine about 400-500ms.

julia> # Opening Julia is quite slow, but no change here

Again, depending on what slow, means here, that's potentially also not expected. Is there possibly something wrong with your filesystem?

Keno avatar Apr 26 '24 16:04 Keno

(@v1.11) pkg> # Very slow to open Pkg REPL-mode

How slow is *VERY*? Pkg was changed to be lazy-loaded, so some delay is expected. On my machine about 400-500ms.

Not sure, don't know how to benchmark such a thing. For me, 400-500 ms seems like quite a long time.

julia> # Opening Julia is quite slow, but no change here

Again, depending on what slow, means here, that's potentially also not expected.

Around 500 ms I believe.

Is there possibly something wrong with your filesystem?

I don't believe so, it's only like a one-two month old Arch installation. I mean, isn't Julia a quite heavy application to load? Very slow compared to Python at least, just something to compare with.

albinahlback avatar Apr 26 '24 17:04 albinahlback

Ok, doesn't sound like anything's too terribly off then, and this'll just improve with ordinary load-time improvements.

Keno avatar Apr 26 '24 17:04 Keno