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

**URL:** <https://discourse.julialang.org/t/how-to-write-scripts-with-quick-startup-time-packagecompiler-jl/53900>\
**Category:** General Usage\
**Created:** [January 25, 2021, 11:13am UTC](https://discourse.julialang.org/t/how-to-write-scripts-with-quick-startup-time-packagecompiler-jl/53900 "2021-01-25T11:13:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Post date:** [January 25, 2021, 1:02pm UTC](https://discourse.julialang.org/t/how-to-write-scripts-with-quick-startup-time-packagecompiler-jl/53900/2 "2021-01-25T13:02:25Z")

</div>

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](https://discourse.julialang.org/t/ann-daemonmode-jl-a-package-to-run-faster-scripts-in-julia/42384) 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.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-write-scripts-with-quick-startup-time-packagecompiler-jl/53900)._
