# How to keep Julia dependencies precompiled between terminal sessions?

**URL:** <https://discourse.julialang.org/t/how-to-keep-julia-dependencies-precompiled-between-terminal-sessions/135841>\
**Category:** New to Julia\
**Tags:** question, precompilation, advice\
**Created:** [February 25, 2026, 2:56pm UTC](https://discourse.julialang.org/t/how-to-keep-julia-dependencies-precompiled-between-terminal-sessions/135841 "2026-02-25T14:56:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![hexaeder](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hexaeder/32/24403_2.png) [@hexaeder](https://discourse.julialang.org/u/hexaeder)\
**Post date:** [February 25, 2026, 5:58pm UTC](https://discourse.julialang.org/t/how-to-keep-julia-dependencies-precompiled-between-terminal-sessions/135841/4 "2026-02-25T17:58:48Z")

</div>

In my experience, frequent precompilation has often to do with code loading from shared environments before activating the actual environment (for example when you load Revise in your startup and activate the env within your script). See also

> [@Makie.jl Extensions frequently recompiled](https://discourse.julialang.org/t/makie-jl-extensions-frequently-recompiled/128203/3):
>
> One common problem is that you have something like using Revise in your startup (which load some deps) and change environment afterwards. This can lead to cache miss in precompilation (because some shared deps might be already loaded). Nearly all of my preconpilation gripes where resolved once I startet always invoking Julia with —project=@..

---

_[View the full topic](https://discourse.julialang.org/t/how-to-keep-julia-dependencies-precompiled-between-terminal-sessions/135841)._
