# Very slow time to first plot, 2022

**URL:** https://discourse.julialang.org/t/very-slow-time-to-first-plot-2022/88968
**Category:** General Usage
**Tags:** ttfp
**Created:** [October 19, 2022, 2:57pm UTC](https://discourse.julialang.org/t/very-slow-time-to-first-plot-2022/88968 "2022-10-19T14:57:07Z")
**Posts on this page:** 1
**Showing post:** 40

<div class="post-metadata">

### Author: ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)
#### Post date: [October 19, 2022, 9:58pm UTC](https://discourse.julialang.org/t/very-slow-time-to-first-plot-2022/88968/40 "2022-10-19T21:58:20Z")

</div>

Something to help understand is that precompilation does not mean “ahead-of-time compilation”, but “step before compilation” in this context. Like simon explained in this old post.

> [@Questions about Compiler and Compiling Modules](https://discourse.julialang.org/t/questions-about-compiler-and-compiling-modules/19591/17):
>
> Should it not be precompiled already? Yes and no! Julia consist of multiple compilation stages: parsing -\> lowering -\> type inference -\> LLVM IR -\> native code. The first 2 (maybe partly 3 if all types are fixed) are done during what we call precompilation. The last three only happen when you call a function. using StaticArrays # precompiled m = @SMatrix rand(3, 3) @profiler inv(m) # lots of calls to type inference

So the compilation is still done on first execution. But I agree it is still frustrating. I think I got used to the ~1 minute before being able to do something useful. I go and prepare some coffee before. I am glad that storing compiled code is in the horizon!

---

_[View the full topic](https://discourse.julialang.org/t/very-slow-time-to-first-plot-2022/88968)._
