Compile my source code

I have a code (stored in four files) that takes a long time to initialize (the first time) and is relatively fast to execute). Waiting a few minutes for a code that runs in 10 seconds is unproductive.

Is there a way to precompile my entire code so that I may startup and run it faster over a range of parameter values? Thanks.

does PackageCompiler do what you want?

1 Like

You have a few options, PackageCompiler is one as said above. You can use 1.9beta and its caching capabilities to significantly reduce “time to first plot”. The hardest option is using StaticComplier.jl, which has some limitations like no allocations are allowed.