# Avoid precompiling dependencies / Good package practice

**URL:** https://discourse.julialang.org/t/avoid-precompiling-dependencies-good-package-practice/53949
**Category:** New to Julia
**Tags:** package, precompilation, package-compiler
**Created:** [January 26, 2021, 3:24am UTC](https://discourse.julialang.org/t/avoid-precompiling-dependencies-good-package-practice/53949 "2021-01-26T03:24:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Visipi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/visipi/32/21206_2.png) [@Visipi](https://discourse.julialang.org/u/Visipi)
#### Post date: [January 26, 2021, 3:24am UTC](https://discourse.julialang.org/t/avoid-precompiling-dependencies-good-package-practice/53949/1 "2021-01-26T03:24:25Z")

</div>

I’m writing a software package that has some pretty beefy dependencies. Naturally, I’d expect a somewhat slow precompilation. With ` __precompile__ (false)` I have a dead time of about 30s, and with ` __precompile__ (true)` it’s about 10 seconds slower.

As a developer, I’m not always interested in loading every dependency when I’m running tests. Can any wizards here recommend good practice / hygiene so I can save myself time during the workday?

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [January 26, 2021, 4:58am UTC](https://discourse.julialang.org/t/avoid-precompiling-dependencies-good-package-practice/53949/2 "2021-01-26T04:58:07Z")

</div>

I think one way is to use `Revise.jl` and manually run the `runalltests.jl` script every iteration in the REPL

---

<div class="post-metadata">

### Author: ![rikh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rikh/32/204104_2.png) [@rikh](https://discourse.julialang.org/u/rikh)
#### Post date: [January 26, 2021, 4:22pm UTC](https://discourse.julialang.org/t/avoid-precompiling-dependencies-good-package-practice/53949/3 "2021-01-26T16:22:56Z")

</div>

You mean `include("test/runtests.jl")`? (I’m not trying to be pedantic, it’s just that I am not 100% sure if this is what you mean.)

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [January 26, 2021, 5:07pm UTC](https://discourse.julialang.org/t/avoid-precompiling-dependencies-good-package-practice/53949/4 "2021-01-26T17:07:11Z")

</div>

yeah, or some people like to have a `runalltest()` defined and just call that function everytime
