How to reduce the large number of files in ~/.julia?

FWIW, my system shows

  • conda 21128
  • registries 14549
  • packages 10100
  • artifacts 2344

Nothing specials stands out in the packages and artifacts. Some packages include docs and headers.

Registries has the biggest potential for improvement after removing Conda from the system.
And registry initialization could be a bit faster, with an empty depot this takes 153 s.

julia> import Pkg; @time Pkg.pkg"up"
    Cloning default registries into `C:\temp\jldepot`
    Cloning registry from "https://github.com/JuliaRegistries/General.git"
      Added registry `General` to `C:\temp\jldepot\registries\General`
   Updating registry at `C:\temp\jldepot\registries\General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
   Updating `C:\TEMP\jldepot\environments\v1.4\Project.toml`
 [no changes]
   Updating `C:\TEMP\jldepot\environments\v1.4\Manifest.toml`
 [no changes]
152.990757 seconds (5.23 M allocations: 182.676 MiB, 0.02% gc time)

Definitely not top priorities, but just my observation of opportunity for improvement.

It is very slow on Windows due to Windows Defender. Look at the active processes while the registry is cloning.

2 Likes