# Why loading a Package is slow (Julia 1.6)

**URL:** <https://discourse.julialang.org/t/why-loading-a-package-is-slow-julia-1-6/64868>\
**Category:** Performance\
**Tags:** package, startup\
**Created:** [July 18, 2021, 6:33pm UTC](https://discourse.julialang.org/t/why-loading-a-package-is-slow-julia-1-6/64868 "2021-07-18T18:33:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [July 18, 2021, 7:00pm UTC](https://discourse.julialang.org/t/why-loading-a-package-is-slow-julia-1-6/64868/2 "2021-07-18T19:00:53Z")

</div>

Check this explanation:

> [@Julia precompilation limits or are there really any?](https://discourse.julialang.org/t/julia-precompilation-limits-or-are-there-really-any/55224/2):
>
> I’m not an expert on the topic, so others more knowledgeable about the compiler can definitely chime in here. But from my understanding: Currently there will always be some compilation cost on the first call. Precompile directives only save type-inferred code, not native code, so the first time a precompiled method is called the compiler still needs to do some work. However, a major part of compiling time is spent in type inference, so precompilation will still significantly cut package loadin…

---

_[View the full topic](https://discourse.julialang.org/t/why-loading-a-package-is-slow-julia-1-6/64868)._
