# Recommended way of disabling precompilation for a package I'm dev'ing

**URL:** <https://discourse.julialang.org/t/recommended-way-of-disabling-precompilation-for-a-package-im-deving/91539>\
**Category:** General Usage\
**Tags:** question, precompilation\
**Created:** [December 11, 2022, 10:55pm UTC](https://discourse.julialang.org/t/recommended-way-of-disabling-precompilation-for-a-package-im-deving/91539 "2022-12-11T22:55:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tictaccat](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@tictaccat](https://discourse.julialang.org/u/tictaccat)\
**Post date:** [December 11, 2022, 10:55pm UTC](https://discourse.julialang.org/t/recommended-way-of-disabling-precompilation-for-a-package-im-deving/91539/1 "2022-12-11T22:55:00Z")

</div>

I’m currently in the situation where I’m in `dev` mode for a package `X` and actively making changes to its source. But this makes a package `Y` which depends on `X` have very long precompilation times every time I have to quit and restart my session (e.g. when I restart my computer; normally I’m using `Revise` and only have to suffer precompilation every time I begin a session, but that’s still a pain since precompilation takes a loooong time).

Since I’m constantly making changes to `X`, this seems to basically nullify the point of precompilation: what’s the nicest way to disable precompilation of `Y` in such a case? Do I need to edit its source, is there a way to do this purely through a setting in the package manager (it would need to be a package-specific disabling of precompilation), etc.?

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [December 12, 2022, 9:31am UTC](https://discourse.julialang.org/t/recommended-way-of-disabling-precompilation-for-a-package-im-deving/91539/2 "2022-12-12T09:31:36Z")

</div>

I think setting ` __precompile__ (false)` above the module definition of the package should do it.

---

<div class="post-metadata">

**Author:** ![tictaccat](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@tictaccat](https://discourse.julialang.org/u/tictaccat)\
**Post date:** [December 12, 2022, 11:34pm UTC](https://discourse.julialang.org/t/recommended-way-of-disabling-precompilation-for-a-package-im-deving/91539/3 "2022-12-12T23:34:51Z")

</div>

Thanks! In an ideal world maybe this could be done through `Pkg` but that works great:)

---

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [December 13, 2022, 4:55pm UTC](https://discourse.julialang.org/t/recommended-way-of-disabling-precompilation-for-a-package-im-deving/91539/4 "2022-12-13T16:55:41Z")

</div>

@kristoffer.carlsson made the best suggestion for now. Some day we will need something like [Add option to globally disable snoop precompilation by baggepinnen · Pull Request #299 · timholy/SnoopCompile.jl · GitHub](https://github.com/timholy/SnoopCompile.jl/pull/299), but I haven’t gotten to that yet.
