Precompiling causing system freeze

I’m on a 10y-old machine, and each time I updated a few packages, a whopping 100+ packages got recompiled, and system hung if other resource intensive apps like YouTube page were running. I noticed compiling in R/Haskell etc use less system resource ( by the fact YouTube still plays and system doesn’t freeze). So can I know why this is happening and whether it possible to lower Julia’s precompiling load on memory?

You can disable automatic precompilation by setting the environment variable JULIA_PKG_PRECOMPILE_AUTO to 0, or you can limit the number of concurrent precompilation tasks by setting JULIA_NUM_PRECOMPILE_TASKS. See docstring for Pkg.precompile.


If you are on Linux I wonder if nice julia would work for you by lowering Julia’s priority so your important applications can run. :slight_smile:

I don’t know nice is a shipped command…let me try