# Removing precompilation leads to lower allocations!?

**URL:** <https://discourse.julialang.org/t/removing-precompilation-leads-to-lower-allocations/73621>\
**Category:** Performance\
**Tags:** memory-allocation, precompilation\
**Created:** [December 25, 2021, 6:15pm UTC](https://discourse.julialang.org/t/removing-precompilation-leads-to-lower-allocations/73621 "2021-12-25T18:15:25Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Krastanov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/krastanov/32/6817_2.png) [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Post date:** [January 21, 2022, 10:10pm UTC](https://discourse.julialang.org/t/removing-precompilation-leads-to-lower-allocations/73621/3 "2022-01-21T22:10:41Z")

</div>

Discussion in [Taking TTFX seriously: Can we make common packages faster to load and use - #9 by jlapeyre](https://discourse.julialang.org/t/taking-ttfx-seriously-can-we-make-common-packages-faster-to-load-and-use/74949/9) seems to answer some of my questions.

Julia bugs to track if you have such problems:

> <https://github.com/JuliaLang/julia/issues/35800>
>
> Using Julia master (newer than 301db971daaeeb627ba768375538e6e7ff36d215), the fo…llowing does not infer the correct type (see also the discussion in #34048):
> \`\`\`julia
> using Test, LinearAlgebra
> \# @inferred mapreduce(norm, +, \[rand(1)\]);
> @inferred mapreduce(norm, +, \[rand(1)\]; init = 0.);
> \`\`\`
> Note that the third line works if you comment out the second line (start from a fresh Julia session), which makes testing this issue difficult.

[https://github.com/JuliaLang/julia/issues/35972](https://github.com/JuliaLang/julia/issues/35972)

Also check out the bugs in other packages that link to the ones above.

---

_[View the full topic](https://discourse.julialang.org/t/removing-precompilation-leads-to-lower-allocations/73621)._
