# Personal package precompiles everytime I restart Julia (running on HPC)

**URL:** <https://discourse.julialang.org/t/personal-package-precompiles-everytime-i-restart-julia-running-on-hpc/128534>\
**Category:** General Usage\
**Tags:** precompilation\
**Created:** [April 29, 2025, 4:41pm UTC](https://discourse.julialang.org/t/personal-package-precompiles-everytime-i-restart-julia-running-on-hpc/128534 "2025-04-29T16:41:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Torkel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/torkel/32/5030_2.png) [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Post date:** [April 29, 2025, 4:41pm UTC](https://discourse.julialang.org/t/personal-package-precompiles-everytime-i-restart-julia-running-on-hpc/128534/1 "2025-04-29T16:41:21Z")

</div>

Basically, I have a personal package (let’s call it MyPackage.jl). It is located in the same folder as I run my scripts. I have added it to the environment using

```julia
Pkg.develop("MyPackage/")

```

Every time I start a Julia process and does

```julia
using MyPackage

```

It will go through precompilation, taking like 5 minutes (and I also have a workflow which requires a decent amount of restarting, which makes this a mess).

What might be related is that I run Julia from VSCode where I have ssh’d into a machine. There I run my package both interactively in VSCode, and in script for from the terminal (julia script\_which\_uses\_mypackage.jl).

I am not an expert on precompilation (when it happens and why), but can someone confirm that this isn’t something that should actually happen? I should not, I do not make any modifications to MyPackage, my enviornment, or Julia version, between restarts.

Here: [Why is my package precompiled on every startup? - #8 by erans](https://discourse.julialang.org/t/why-is-my-package-precompiled-on-every-startup/55289/8) someone mentioned a cause which could be similar, and linked to [GitHub - simonbyrne/PkgLock.jl: Locked Pkg instantiate/precompile](https://github.com/simonbyrne/PkgLock.jl). However, all the issues that package links have now been closed (and the package not been updated for 6 years), so I don’t feel that might be the case anymore?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [April 29, 2025, 5:10pm UTC](https://discourse.julialang.org/t/personal-package-precompiles-everytime-i-restart-julia-running-on-hpc/128534/2 "2025-04-29T17:10:59Z")

</div>

If you want to discover the “why”, before

```julia
using MyPackage

```

do

```julia
ENV["JULIA_DEBUG"] = "loading"

```
