I’m trying to compile my project to a standalone executable with PackageCompiler.jl.
I have used PackageCompiler before just for toying around, and I remember compilation times were slow, but now with a real codebase (20 deps, ~1k lines of code) this is taking already more than 2 hours (and counting).
Is having several hours of compilation time for PackageCompiler a normal thing, or there might be a problem in my setup?
I tried again without Revise and stopped the compilation at 1 hour without success.
Btw, I’m also using create_app. I can compile “hello world” apps in about 5 minutes.
I also tried to compile a test application that only includes Plots:
println("Generating random plot and saving to file...")
… and after 50 minutes, I gave up.
However, I removed Plots from one of the packages I was trying to compile, and it compiled in about 12 minutes!
A funny thing happened, though. The first time I ran it, it took some time in downloading some artifact (MKL) which had apparently forgot to include during the build, but the second time I ran it, it went straight into the results.
So I guess no plotting on compiled apps? That’s curious, because the first thing I ever did with PackageCompier was to add Plots to a sysimage… Why would something work for a compiled sysimage and not for a standalone app?