using : 234.641995 seconds (4.61 M allocations: 283.895 MiB, 0.14% gc time, 0.09% compilation time: 76% of which was recompilation)
Proj : 1.202910 seconds (22.04 k allocations: 1.244 MiB)
Makie : 102.903060 seconds (2.57 M allocations: 244.475 MiB, 0.29% gc time, 0.01% compilation time)
CSV : 3.321988 seconds (2.85 M allocations: 193.021 MiB, 5.61% gc time, 314.71% compilation time: 10% of which was recompilation)
No other tasks running in parallel (browser, etc).
And just start up of Julia in terminal, what does it take?
In any case, generally loading packages doesnāt take THAT long, and your hardware is reasonably powerful. Iād consider some clean re-install of Windows Julia (look for or ask here how to do it), and then installation of your packages one by one into a project, checking startup times.
For comparison: on my modest M1 Mac mini, starting my current package, which includes DataFrames and a number of other packages, took 0.6 s.
To be honest, that helps. I remember until around 4 months ago, I had all my packages Naively in the native Julia environment.
Decided to install Julia fresh. Got rid of the junk packages I had and finally resolved to use environments in a sophisticated manner. Sped up, but still not as much as I expected. The first run time issue is there with me too. But ig, thatās all right. Itās not as bad with me tbh. Takes no longer than 30 seconds for me.
I do feel this is strictly a consequence of background processes. Something running in the background - either a window of a browser/vs code itself or maybe some other software that is there all the time. @TimG do check your background processes once. Also, I do have device encryption by default as @lmiq said. Looked it up - it does slow down the PC quite a lot.
You donāt even need to switch OS to use Linux, you could just install WSL and then install julia there, the linux-windows integration of apps and files is also much nicer with the latest WSL updates, you can even use graphical apps installed on WSL, and you can access any files inside WSL from Windows by just doing explorer.exe <path>.
FWIW, this is what a I get here, with a 5-year old laptop:
julia> @time begin
using DataFrames
using CSV
using Dates
using ZipArchives
using GeoStats
using GeoIO
end
5.557891 seconds (4.45 M allocations: 272.867 MiB, 4.17% gc time, 3.66% compilation time: 96% of which was recompilation)
julia> @time import CairoMakie as Mke
3.706602 seconds (2.53 M allocations: 247.502 MiB, 7.53% gc time, 0.46% compilation time)
julia> versioninfo()
Julia Version 1.10.3
Commit 0b4590a5507 (2024-04-30 10:59 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 8 Ć Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, skylake)
Threads: 8 default, 0 interactive, 4 GC (on 8 virtual cores)
Environment:
JULIA_EDITOR = vim
(@v1.10) pkg> activate .
Activating project at `E:\Desktop\Julia Package Speed Check`
julia> @time using CSV, DataFrames, Dates, ZipArchives, GeoStats, GeoIO
13.545861 seconds (4.53 M allocations: 277.763 MiB, 3.66% gc time, 4.36% compilation time: 90% of which was recompilation)
julia> versioninfo()
Julia Version 1.10.3
Commit 0b4590a550 (2024-04-30 10:59 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 8 Ć 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, tigerlake)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)
I restarted my PC after installing the packages and running the program once.
I donāt think thereās any problem with Windows 11 as suchā¦ I mean my system config has no comparison with that of @TimG . Plus Iām only on a single Thread. Soā¦ idkā¦ probably some antivirus software or some other background app. (Iāll now delete these packages)
where a new problem involving Windows and the JuliaGeo ecosystem emerged, distinct from the original post. Could we split the thread there, so it might be easier for more specialized analysis of the latter issue?