Precompile: Why?

chelseas
Wed, 30 Mar 2022 21:32:44 +0000
General Usage

For compiled languages like C++, you generally use external libraries that you download in a format that is already compiled. Then you compile your own code when you want to run it. This takes time, but it’s just part of the deal. It seems like Julia precompiles external libraries every time they are used if you start a new Julia master process and my question is why? Why can’t you only precompile external libraries when they get updated like Pkg.update(“SomePackage”) (that would trigger precompilation), and other times just load them? It really adds to development time to wait for precompile to finish. As we speak, I am writing this message as I wait for precompile to finish :'D

I have experimented with PackageCompiler.jl but I always ran into bugs and gave up.

Thoughts?

31 posts - 18 participants

Read full topic