# Very long time to compile system image with v1.9beta2

**URL:** <https://discourse.julialang.org/t/very-long-time-to-compile-system-image-with-v1-9beta2/92870>\
**Category:** Performance\
**Created:** [January 12, 2023, 2:24pm UTC](https://discourse.julialang.org/t/very-long-time-to-compile-system-image-with-v1-9beta2/92870 "2023-01-12T14:24:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcreel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mcreel/32/30088_2.png) [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Post date:** [January 12, 2023, 2:24pm UTC](https://discourse.julialang.org/t/very-long-time-to-compile-system-image-with-v1-9beta2/92870/1 "2023-01-12T14:24:21Z")

</div>

Using julia v1.9beta2, I have tried to compile a system image for a project with many dependencies. This takes around 10-12 minutes with v1.8.x. With 1.9b2, I interrupted it at the 2 hour point. Perhaps I should clear out .julia/compiled? The script and project are [here](https://github.com/mcreel/Econometrics/blob/main/MakeSysimage.jl).

On the positive side, I have observed that, with v1.9b2, the need for a system image seems to be considerably less than it used to be, as TTFX is faster for just about everything I do.

---

<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:** [January 12, 2023, 2:33pm UTC](https://discourse.julialang.org/t/very-long-time-to-compile-system-image-with-v1-9beta2/92870/2 "2023-01-12T14:33:17Z")

</div>

It is expected for now and a fix is in progress.

---

<div class="post-metadata">

**Author:** ![mcreel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mcreel/32/30088_2.png) [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Post date:** [January 12, 2023, 2:37pm UTC](https://discourse.julialang.org/t/very-long-time-to-compile-system-image-with-v1-9beta2/92870/3 "2023-01-12T14:37:03Z")

</div>

Thanks, I will try again when then next beta or RC is out.

---

<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:** [January 12, 2023, 2:38pm UTC](https://discourse.julialang.org/t/very-long-time-to-compile-system-image-with-v1-9beta2/92870/4 "2023-01-12T14:38:58Z")

</div>

The issue is with PackageCompiler, not with Julia itself.

---

<div class="post-metadata">

**Author:** ![t-bltg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/t-bltg/32/25526_2.png) [@t-bltg](https://discourse.julialang.org/u/t-bltg)\
**Post date:** [January 12, 2023, 3:07pm UTC](https://discourse.julialang.org/t/very-long-time-to-compile-system-image-with-v1-9beta2/92870/5 "2023-01-12T15:07:17Z")

</div>

See also [Julia 1.9.0-beta2 precompilation taking almost twice as long](https://discourse.julialang.org/t/julia-1-9-0-beta2-precompilation-taking-almost-twice-as-long/92498).

EDIT: misread OP’s report 🙂

---

<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:** [January 12, 2023, 3:12pm UTC](https://discourse.julialang.org/t/very-long-time-to-compile-system-image-with-v1-9beta2/92870/6 "2023-01-12T15:12:15Z")

</div>

> [@t-bltg](#):
>
> See also [Julia 1.9.0-beta2 precompilation taking almost twice as long](https://discourse.julialang.org/t/julia-1-9-0-beta2-precompilation-taking-almost-twice-as-long/92498).

That is not really related. The issue here is that the `Pkg.precompile()` process that precompile things in parallel is currently not done in such a way that the process that makes the sysimage reuses those files.
