How to write scripts with quick startup time (PackageCompiler.jl?)

I would first recommend you try your script while passing the -O0 --compile=min flags to Julia and check how the times change. If your script is more IO-bound than CPU-bound then this should be enough. If your script does a lot of computational effort, then DaemonMode can help you (the first run will be yet slow, but every other run will be faster). I would turn to PackageCompiler.jl as a last resort.

1 Like