# Unnecessary compilation happening on every call

**URL:** <https://discourse.julialang.org/t/unnecessary-compilation-happening-on-every-call/17558>\
**Category:** Performance\
**Created:** [November 15, 2018, 2:32pm UTC](https://discourse.julialang.org/t/unnecessary-compilation-happening-on-every-call/17558 "2018-11-15T14:32:55Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![lwabeke](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lwabeke/32/4005_2.png) [@lwabeke](https://discourse.julialang.org/u/lwabeke)\
**Post date:** [March 11, 2019, 2:26pm UTC](https://discourse.julialang.org/t/unnecessary-compilation-happening-on-every-call/17558/7 "2019-03-11T14:26:39Z")

</div>

Unfortunately not. At times, it seemed to go away for a while only to then reappear when I seemed to have only made minor changes, none of which should have explain its behaviour (for example a Pkg.update or a small change in some sub-function).

I started thinking about wrapping the code as a module to hopefully get benefits from pre-compilation. But I cannot say that my attempts thus far has solved the issue.

While looking at pre-compilation, I found mention of

> **[Compiling Julia Binaries](https://makieorg.medium.com/compiling-julia-binaries-ddd6d4e0caf4)**
>
> This article is an in-depth look at my new package PackageCompiler.jl. If you just want to start building binaries for your favorite Julia…

and the linked  
[https://juliacomputing.com/blog/2016/02/09/static-julia.html](https://juliacomputing.com/blog/2016/02/09/static-julia.html)

Both of which are not slightly outdated, but they seemed to indicate a way to see what is being compiled. Maybe directly looking at

> **[GitHub - timholy/SnoopCompile.jl: Making packages work faster with more...](https://github.com/timholy/SnoopCompile.jl)**
>
> Making packages work faster with more extensive precompilation - GitHub - timholy/SnoopCompile.jl: Making packages work faster with more extensive precompilation

might give clues.

Those links will likely be my next course of action to resolve this, but in the meantime I’m looking at more immediate problems and leaving this in the hope that it will be resolved with a newer release or inputs from someone else will be the key to solving it. Or refactoring to remove keyword arguments in the hope it will then go away as well with a simpler function signature.

If you learn anymore more, please share on what you have found out.

---

_[View the full topic](https://discourse.julialang.org/t/unnecessary-compilation-happening-on-every-call/17558)._
