# \#precompilation

**URL:** https://discourse.julialang.org/tag/precompilation/173.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Pluto fails to precompile on v1.13](https://discourse.julialang.org/t/pluto-fails-to-precompile-on-v1-13/139450)

<div class="topic-metadata">

**Author:** [@lazylavenders](https://discourse.julialang.org/u/lazylavenders)\
**Replies:** 13\
**Last updated:** [September 16, 2026, 11:16am UTC](https://discourse.julialang.org/t/pluto-fails-to-precompile-on-v1-13/139450 "2026-09-16T11:16:25Z")

</div>

I recently upgraded to Julia v1.13 and was pleasantly surprised by how quickly packages downloaded. However, Pluto fails to precompile on my machine, which didn’t used to happen on v1.12.7. It appeared that someone else …

---

## [SimpleDirectMediaLayer won't precompile on wayland](https://discourse.julialang.org/t/simpledirectmedialayer-wont-precompile-on-wayland/139414)

<div class="topic-metadata">

**Author:** [@BananaMaster3](https://discourse.julialang.org/u/BananaMaster3)\
**Replies:** 0\
**Last updated:** [September 12, 2026, 8:22pm UTC](https://discourse.julialang.org/t/simpledirectmedialayer-wont-precompile-on-wayland/139414 "2026-09-12T20:22:43Z")

</div>

Hey all. When I try to add SimpleDirectMediaLayer to my wayland machine, it gives this ridiculously long error. I’m clueless in this area, so I figured I would paste the entire error. I’d appreciate anything on how to d…

---

## [Building an incremental sysimage in seconds instead of minutes](https://discourse.julialang.org/t/building-an-incremental-sysimage-in-seconds-instead-of-minutes/139352)

<div class="topic-metadata">

**Author:** [@melevy](https://discourse.julialang.org/u/melevy)\
**Replies:** 0\
**Last updated:** [September 10, 2026, 8:56pm UTC](https://discourse.julialang.org/t/building-an-incremental-sysimage-in-seconds-instead-of-minutes/139352 "2026-09-10T20:56:55Z")

</div>

Disclaimer: this post was written using AI, but I did my best to make this informative and useful for others. The post has been flagged for being an advertisement, it is not. I hope it passes this time. This is a resear…

---

## [Why does everything keep precompiling?](https://discourse.julialang.org/t/why-does-everything-keep-precompiling/139109)

<div class="topic-metadata">

**Author:** [@BananaMaster3](https://discourse.julialang.org/u/BananaMaster3)\
**Replies:** 14\
**Last updated:** [August 31, 2026, 9:09pm UTC](https://discourse.julialang.org/t/why-does-everything-keep-precompiling/139109 "2026-08-31T21:09:13Z")

</div>

Hey everybody! I’ve been using julia more and more recently, and it’s been great. The one thing that I’m finding difficult is the thing stopping me from using the language itself – that being precompilation. Whenever I…

---

## [Can we have non-blocking precompilation? 🙏](https://discourse.julialang.org/t/can-we-have-non-blocking-precompilation/138083)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 15\
**Last updated:** [July 11, 2026, 8:53pm UTC](https://discourse.julialang.org/t/can-we-have-non-blocking-precompilation/138083 "2026-07-11T20:53:46Z")

</div>

Can we have non-blocking precompilation? I think this would be great. So, currently, when I type using MyPackage at the REPL and the cache is stale, I have to sit through precompilation before I can touch anything in My…

---

## [Why is \`\]add --preserve=all\` still updating packages?](https://discourse.julialang.org/t/why-is-add-preserve-all-still-updating-packages/137368)

<div class="topic-metadata">

**Author:** [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Replies:** 0\
**Last updated:** [June 1, 2026, 8:23am UTC](https://discourse.julialang.org/t/why-is-add-preserve-all-still-updating-packages/137368 "2026-06-01T08:23:36Z")

</div>

I have an environment where GPUArrays is already installed as an indirect dependency. I want to make it available without triggering precompilation (which can be really slow sometimes). But even with --preserve=all the…

---

## [Module X with build ID Y is missing from the cache. This may mean X \[Z\] does not support precompilation but is imported by a module that does](https://discourse.julialang.org/t/module-x-with-build-id-y-is-missing-from-the-cache-this-may-mean-x-z-does-not-support-precompilation-but-is-imported-by-a-module-that-does/136043)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 6\
**Last updated:** [March 6, 2026, 12:15pm UTC](https://discourse.julialang.org/t/module-x-with-build-id-y-is-missing-from-the-cache-this-may-mean-x-z-does-not-support-precompilation-but-is-imported-by-a-module-that-does/136043 "2026-03-06T12:15:31Z")

</div>

Hi, I keep getting errors of the type “Module X with build ID Y is missing from the cache. This may mean X \[Z\] does not support precompilation but is imported by a module that does”. I’m on v1.10.4 as this is what my HP…

---

## [World age warning (no @eval) on constructor of different dispatch](https://discourse.julialang.org/t/world-age-warning-no-eval-on-constructor-of-different-dispatch/135947)

<div class="topic-metadata">

**Author:** [@cnaak](https://discourse.julialang.org/u/cnaak)\
**Replies:** 5\
**Last updated:** [March 2, 2026, 2:51pm UTC](https://discourse.julialang.org/t/world-age-warning-no-eval-on-constructor-of-different-dispatch/135947 "2026-03-02T14:51:51Z")

</div>

Updated to julia-1.12 and started a new package. As soon as I defined my first struct with more than one external constructor (nothing fancy, no @evals), I’ve got the world age warning (future error). MWE: struct examp…

---

## [How to keep Julia dependencies precompiled between terminal sessions?](https://discourse.julialang.org/t/how-to-keep-julia-dependencies-precompiled-between-terminal-sessions/135841)

<div class="topic-metadata">

**Author:** [@Farouk](https://discourse.julialang.org/u/Farouk)\
**Replies:** 12\
**Last updated:** [February 26, 2026, 10:50am UTC](https://discourse.julialang.org/t/how-to-keep-julia-dependencies-precompiled-between-terminal-sessions/135841 "2026-02-26T10:50:20Z")

</div>

Hello everyone, I’m developing a Julia-based simulation model that runs from the terminal (no UI). Each time I execute the script, it precompiles all dependencies, which takes quite a long time (around 8 minutes). Is t…

---

## [How to define pre-compile workloads for Makie figures in a module?](https://discourse.julialang.org/t/how-to-define-pre-compile-workloads-for-makie-figures-in-a-module/135683)

<div class="topic-metadata">

**Author:** [@RoyW](https://discourse.julialang.org/u/RoyW)\
**Replies:** 1\
**Last updated:** [February 16, 2026, 7:11pm UTC](https://discourse.julialang.org/t/how-to-define-pre-compile-workloads-for-makie-figures-in-a-module/135683 "2026-02-16T19:11:58Z")

</div>

I modified the interactive button counting example from the official Makie documentation. It has a mouse-hover and button-click interactive events. May someone please help me with the pre-compilation workload code? I wo…

---

## [PackageCompiler.jl: What is it doing and how do I use it correctly?](https://discourse.julialang.org/t/packagecompiler-jl-what-is-it-doing-and-how-do-i-use-it-correctly/135530)

<div class="topic-metadata">

**Author:** [@abraemer](https://discourse.julialang.org/u/abraemer)\
**Replies:** 3\
**Last updated:** [February 8, 2026, 5:51pm UTC](https://discourse.julialang.org/t/packagecompiler-jl-what-is-it-doing-and-how-do-i-use-it-correctly/135530 "2026-02-08T17:51:11Z")

</div>

Today I was playing with PackageCompiler.jl (PC) because I am wondering whether it could play a role in reducing startup times (sparked by the recent discussions about the worsening of Julia startup times ref). During m…

---

## [Clarifications on JULIA\_CPU\_TARGET](https://discourse.julialang.org/t/clarifications-on-julia-cpu-target/134807)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 1\
**Last updated:** [January 14, 2026, 3:59pm UTC](https://discourse.julialang.org/t/clarifications-on-julia-cpu-target/134807 "2026-01-14T15:59:05Z")

</div>

I’m looking into adjusting JULIA\_CPU\_TARGET for a container deployed on AWS, and think I’m close to understanding it. These threads have helped: Understanding JULIA\_CPU\_TARGET Questions about JULIA\_CPU\_TARGET Arm64 ju…

---

## [\[ANN\] SnoopCompile 3.0.0](https://discourse.julialang.org/t/ann-snoopcompile-3-0-0/117430)

<div class="topic-metadata">

**Author:** [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Replies:** 3\
**Last updated:** [December 29, 2025, 1:05pm UTC](https://discourse.julialang.org/t/ann-snoopcompile-3-0-0/117430 "2025-12-29T13:05:43Z")

</div>

I’m pleased to announce the release of SnoopCompile 3.0.0. This major release had multiple goals: a slimmed package in which integrations with JET, Cthulhu, and other packages occur through package extensions. This mea…

---

## [Precompilation and tracking dependencies](https://discourse.julialang.org/t/precompilation-and-tracking-dependencies/134530)

<div class="topic-metadata">

**Author:** [@epilliat](https://discourse.julialang.org/u/epilliat)\
**Replies:** 1\
**Last updated:** [December 14, 2025, 1:03am UTC](https://discourse.julialang.org/t/precompilation-and-tracking-dependencies/134530 "2025-12-14T01:03:09Z")

</div>

I’m somehow bouncing back on this post about the time it takes for precompilation, and I agree with @mattsignorelli that it can scare new users about the practical performance of Julia. I’ve also been frustrated a lot be…

---

## [ModelingToolkit fails to precompile on Julia 1.12 (UndefVarError: ODESystem not defined in ModelingToolkit)](https://discourse.julialang.org/t/modelingtoolkit-fails-to-precompile-on-julia-1-12-undefvarerror-odesystem-not-defined-in-modelingtoolkit/134133)

<div class="topic-metadata">

**Author:** [@junmorenodi99](https://discourse.julialang.org/u/junmorenodi99)\
**Replies:** 11\
**Last updated:** [November 27, 2025, 7:56am UTC](https://discourse.julialang.org/t/modelingtoolkit-fails-to-precompile-on-julia-1-12-undefvarerror-odesystem-not-defined-in-modelingtoolkit/134133 "2025-11-27T07:56:46Z")

</div>

Hi everyone, I’m having trouble with ModelingToolkit precompilation on Julia 1.12 on Windows, and I can’t figure out what’s triggering it. In my project I’m just adding some libraries (including ModelingToolkit) : usi…

---

## [Plots stopped working (more or less out of nowhere)](https://discourse.julialang.org/t/plots-stopped-working-more-or-less-out-of-nowhere/133929)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 18\
**Last updated:** [November 18, 2025, 2:02pm UTC](https://discourse.julialang.org/t/plots-stopped-working-more-or-less-out-of-nowhere/133929 "2025-11-18T14:02:24Z")

</div>

I have an environment which was fine, but after not touching it for a week, suddenly it does no longer work. I haven’t done anything to package versions, so there must be something weirder going on. I have been back and …

---

## [Errors when upgrading from Julia 1.11.6 to Julia 1.12](https://discourse.julialang.org/t/errors-when-upgrading-from-julia-1-11-6-to-julia-1-12/133167)

<div class="topic-metadata">

**Author:** [@JJMerelo](https://discourse.julialang.org/u/JJMerelo)\
**Replies:** 9\
**Last updated:** [October 15, 2025, 10:05am UTC](https://discourse.julialang.org/t/errors-when-upgrading-from-julia-1-11-6-to-julia-1-12/133167 "2025-10-15T10:05:25Z")

</div>

After upgrading (via juliaup) to the newest version of Julia, I keep getting these errors/warnings: 🔧 Setting up BraveNewAlgorithm.jl dependencies... Activating project environment... Activating project at \`~/Code/jul…

---

## [What is included in the output of \`--trace-compile\`?](https://discourse.julialang.org/t/what-is-included-in-the-output-of-trace-compile/133016)

<div class="topic-metadata">

**Author:** [@lkdvos](https://discourse.julialang.org/u/lkdvos)\
**Replies:** 2\
**Last updated:** [October 9, 2025, 9:47pm UTC](https://discourse.julialang.org/t/what-is-included-in-the-output-of-trace-compile/133016 "2025-10-09T21:47:32Z")

</div>

I’m playing around a bit with the new --trace-compile-timing flag for julia 1.12, and while I am excited about this feature, there are a couple questions I’m having for which I can’t seem to easily find an answer. The s…

---

## [Precompilation in a sandbox](https://discourse.julialang.org/t/precompilation-in-a-sandbox/132312)

<div class="topic-metadata">

**Author:** [@Chrysoberyl](https://discourse.julialang.org/u/Chrysoberyl)\
**Replies:** 1\
**Last updated:** [September 13, 2025, 5:25am UTC](https://discourse.julialang.org/t/precompilation-in-a-sandbox/132312 "2025-09-13T05:25:03Z")

</div>

I’m making sandboxed and reproducible Julia builds. One way I do this is by compiling each Julia package using Pkg.API.precompile(). I ensure that $JULIA\_DEPOT is set to a list of paths which contains compiled/v1.11/Logg…

---

## [How to disable precompilation?](https://discourse.julialang.org/t/how-to-disable-precompilation/132239)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 7\
**Last updated:** [September 9, 2025, 10:25pm UTC](https://discourse.julialang.org/t/how-to-disable-precompilation/132239 "2025-09-09T22:25:46Z")

</div>

Suppose I want to load package P. If I do using P, the package and all its dependencies get precompiled before the statement returns. Is there a way to disable precompilation, so compilation would only happen on-demand, …

---

## [Multiple machines with same file system, should Julia recompile on each?](https://discourse.julialang.org/t/multiple-machines-with-same-file-system-should-julia-recompile-on-each/132219)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 7\
**Last updated:** [September 9, 2025, 9:27pm UTC](https://discourse.julialang.org/t/multiple-machines-with-same-file-system-should-julia-recompile-on-each/132219 "2025-09-09T21:27:47Z")

</div>

At work, we have a system where I have a single user account, a desktop on my desk, and multiple compute machines I can ssh into. All these share the same, shared, file system. E.g. they use the same .julia folder, if i …

---

## [How to debug incomplete precompilation](https://discourse.julialang.org/t/how-to-debug-incomplete-precompilation/132222)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 12\
**Last updated:** [September 9, 2025, 4:43pm UTC](https://discourse.julialang.org/t/how-to-debug-incomplete-precompilation/132222 "2025-09-09T16:43:20Z")

</div>

I am having a problem that more or less every time I start Julia I run into precompilations that take ages (I can literally have hours each day where Julia is unavailable due to this). When I do using MyPackage I get a …

---

## [Do you need to recompile a package when you modify non-src files](https://discourse.julialang.org/t/do-you-need-to-recompile-a-package-when-you-modify-non-src-files/132019)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 4\
**Last updated:** [September 9, 2025, 8:53am UTC](https://discourse.julialang.org/t/do-you-need-to-recompile-a-package-when-you-modify-non-src-files/132019 "2025-09-09T08:53:34Z")

</div>

I have problems with packages getting recompiled all the time, and I am trying to debug some of the cases (this has also happened just be restarting Julia, so there are difinitely cases where it does re-precompile when i…

---

## [Lessons learnt and thoughts on deploying Julia and sysimages on AWS](https://discourse.julialang.org/t/lessons-learnt-and-thoughts-on-deploying-julia-and-sysimages-on-aws/130669)

<div class="topic-metadata">

**Author:** [@ConnectedSystems](https://discourse.julialang.org/u/ConnectedSystems)\
**Replies:** 1\
**Last updated:** [August 29, 2025, 1:57pm UTC](https://discourse.julialang.org/t/lessons-learnt-and-thoughts-on-deploying-julia-and-sysimages-on-aws/130669 "2025-08-29T13:57:17Z")

</div>

I have spent a portion of my time on and off over the past two weeks trying to build docker containers with sysimages to deploy on AWS. Over that time I have run into various issues and thought it worthwhile writing up m…

---

## [Precompile package causing missing-from-cache errors](https://discourse.julialang.org/t/precompile-package-causing-missing-from-cache-errors/21747)

<div class="topic-metadata">

**Author:** [@Egwene\_al\_Vere](https://discourse.julialang.org/u/Egwene_al_Vere)\
**Replies:** 0\
**Last updated:** [March 11, 2019, 5:52pm UTC](https://discourse.julialang.org/t/precompile-package-causing-missing-from-cache-errors/21747 "2019-03-11T17:52:13Z")

</div>

As an example, (tested with an empty .julia folder), after precompile some package compile\_incremental(:Makie) and launch julia with the -J /path/to/precompiled/sysimg switch, loading other package can fail, e.g. usi…

---

## [Function fails when used in precompile workload](https://discourse.julialang.org/t/function-fails-when-used-in-precompile-workload/131095)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 7\
**Last updated:** [July 27, 2025, 5:55pm UTC](https://discourse.julialang.org/t/function-fails-when-used-in-precompile-workload/131095 "2025-07-27T17:55:35Z")

</div>

I have the following function: function str2type(name) typename = Symbol(name) t = getfield(Main, typename) instance = t() end I need it to get an instance of a type of a marker struct at runtime based on s…

---

## [Why does it always recompile a package?](https://discourse.julialang.org/t/why-does-it-always-recompile-a-package/131037)

<div class="topic-metadata">

**Author:** [@Kirby\_Zhang](https://discourse.julialang.org/u/Kirby_Zhang)\
**Replies:** 2\
**Last updated:** [July 25, 2025, 1:11am UTC](https://discourse.julialang.org/t/why-does-it-always-recompile-a-package/131037 "2025-07-25T01:11:50Z")

</div>

I have a locally developed package Inherit.jl. It has a \_\_precompile\_\_(true) statement. When I open the package project, importing it does not show any compilation time: K:\\DevDocuments\\fourthwave\\pkg\\Inherit\>more Mani…

---

## [Precompilation for almost every package that I use even though I used that package before](https://discourse.julialang.org/t/precompilation-for-almost-every-package-that-i-use-even-though-i-used-that-package-before/130265)

<div class="topic-metadata">

**Author:** [@Mend-Amar\_Badral](https://discourse.julialang.org/u/Mend-Amar_Badral)\
**Replies:** 5\
**Last updated:** [June 28, 2025, 8:21am UTC](https://discourse.julialang.org/t/precompilation-for-almost-every-package-that-i-use-even-though-i-used-that-package-before/130265 "2025-06-28T08:21:41Z")

</div>

So I use julia v1.10. I for example, open up julia session and then activate shared environment like so: (@geo) pkg\> activate --shared ml3d Activating project at \`~/.julia/environments/ml3d\` (@ml3d) pkg\> st Status \`~…

---

## [PReLU with long compilation time](https://discourse.julialang.org/t/prelu-with-long-compilation-time/129783)

<div class="topic-metadata">

**Author:** [@cirobr](https://discourse.julialang.org/u/cirobr)\
**Replies:** 1\
**Last updated:** [June 12, 2025, 6:24pm UTC](https://discourse.julialang.org/t/prelu-with-long-compilation-time/129783 "2025-06-12T18:24:35Z")

</div>

Cheers, I have implemented a PReLU nonlinearity that seems to be working quite well in my models, except for the fact the model’s compilation time (\*) is way longer than the equivalent model with ReLU instead. Given my…

---

## [Trouble precompiling with Enzyme](https://discourse.julialang.org/t/trouble-precompiling-with-enzyme/129143)

<div class="topic-metadata">

**Author:** [@jtravs](https://discourse.julialang.org/u/jtravs)\
**Replies:** 1\
**Last updated:** [May 19, 2025, 2:11pm UTC](https://discourse.julialang.org/t/trouble-precompiling-with-enzyme/129143 "2025-05-19T14:11:05Z")

</div>

Hi All, I am struggling to get precompilation working with Enzyme.jl. My package works fine without any precompile statements at the top level. But if I add some package function calls within my top-level module, I get …

[Next page](https://discourse.julialang.org/tag/precompilation/173.md?match_all_tags=true&page=1&tags%5B%5D=precompilation)
