# \_\_precompile\_\_() is not resulting in precompiled code

**URL:** <https://discourse.julialang.org/t/--precompile---is-not-resulting-in-precompiled-code/5412>\
**Category:** New to Julia\
**Created:** [August 16, 2017, 2:59pm UTC](https://discourse.julialang.org/t/--precompile---is-not-resulting-in-precompiled-code/5412 "2017-08-16T14:59:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [August 16, 2017, 3:09pm UTC](https://discourse.julialang.org/t/--precompile---is-not-resulting-in-precompiled-code/5412/2 "2017-08-16T15:09:00Z")

</div>

Try giving it a `precompile` hint for the function you call. However, this may not solve your issue as per-compilation stops at package boundaries. Thus, for instance all Base functions which your function calls will not get compiled (some are of course already compiled).

If that is of no use, you can go down the route of a custom usrimg.jl, but that is annoying. See readme of [GitHub - timholy/SnoopCompile.jl: Making packages work faster with more extensive precompilation](https://github.com/timholy/SnoopCompile.jl) and for instance this issue [https://github.com/carlobaldassi/ArgParse.jl/issues/37](https://github.com/carlobaldassi/ArgParse.jl/issues/37).

Note, with Julia 0.6 and using [[ANN] Higher productivity (fewer Julia restarts) with Revise.jl](https://discourse.julialang.org/t/ann-higher-productivity-fewer-julia-restarts-with-revise-jl/4564), you rarely need to restart your REPL, thus avoiding lengthy compilations.

---

_[View the full topic](https://discourse.julialang.org/t/--precompile---is-not-resulting-in-precompiled-code/5412)._
