# \#snoopcompile

**URL:** https://discourse.julialang.org/tag/snoopcompile/595.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [@snoop\_inference taking a very long time?](https://discourse.julialang.org/t/snoop-inference-taking-a-very-long-time/133233)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 2\
**Last updated:** [October 17, 2025, 2:03pm UTC](https://discourse.julialang.org/t/snoop-inference-taking-a-very-long-time/133233 "2025-10-17T14:03:51Z")

</div>

Running @snoop\_inference on a function from my package is taking a very long time - it’s been running for an hour since the function finished executing and hasn’t returned yet. Is this a known issue in any cases? Any sug…

---

## [Understanding SnoopCompile timings](https://discourse.julialang.org/t/understanding-snoopcompile-timings/116892)

<div class="topic-metadata">

**Author:** [@theogf](https://discourse.julialang.org/u/theogf)\
**Replies:** 2\
**Last updated:** [July 20, 2024, 2:22pm UTC](https://discourse.julialang.org/t/understanding-snoopcompile-timings/116892 "2024-07-20T14:22:26Z")

</div>

Hi, First of all SnoopCompile.jl is such an amazing package! Thanks a lot @tim.holy . After using it for a while there is still something I have trouble understanding: When running @snoopi\_deep f(), the exclusive/incl…

---

## [Applying SnoopPrecompile to ProtoBuf Generated Code](https://discourse.julialang.org/t/applying-snoopprecompile-to-protobuf-generated-code/97240)

<div class="topic-metadata">

**Author:** [@ThomasPluck](https://discourse.julialang.org/u/ThomasPluck)\
**Replies:** 2\
**Last updated:** [April 8, 2023, 11:17am UTC](https://discourse.julialang.org/t/applying-snoopprecompile-to-protobuf-generated-code/97240 "2023-04-08T11:17:09Z")

</div>

Hi, so I’m generating some code using .protofiles, they are the usual messages etc. - I have some building automation that I’m fairly happy with and everything works as intended: These proto files can get quite large,…

---

## [Why isn't SnoopPrecompile being able to fully compile the calls in this case?](https://discourse.julialang.org/t/why-isnt-snoopprecompile-being-able-to-fully-compile-the-calls-in-this-case/92849)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 10\
**Last updated:** [January 13, 2023, 7:36am UTC](https://discourse.julialang.org/t/why-isnt-snoopprecompile-being-able-to-fully-compile-the-calls-in-this-case/92849 "2023-01-13T07:36:49Z")

</div>

I have a PR to BandedMatrices with the following SnoopPrecompile instructions: @precompile\_setup begin vs = (\[1.0\], Float32\[1.0\], ComplexF32\[1.0\], ComplexF64\[1.0\]) Bs = Any\[BandedMatrix(0 =\> v) for v in vs\] @precompi…

---

## [How to resolve this method invalidation for \`all\` introduced by loading FillArrays?](https://discourse.julialang.org/t/how-to-resolve-this-method-invalidation-for-all-introduced-by-loading-fillarrays/92417)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 0\
**Last updated:** [January 2, 2023, 1:39pm UTC](https://discourse.julialang.org/t/how-to-resolve-this-method-invalidation-for-all-introduced-by-loading-fillarrays/92417 "2023-01-02T13:39:11Z")

</div>

julia\> using SnoopCompileCore julia\> invalidations = @snoopr using FillArrays; julia\> using SnoopCompile julia\> trees = invalidation\_trees(invalidations); julia\> trees\[end\] inserting all(f::Function, x::FillArrays.Ab…

---

## [Why are macros re-pre-compiled](https://discourse.julialang.org/t/why-are-macros-re-pre-compiled/89319)

<div class="topic-metadata">

**Author:** [@tfiers](https://discourse.julialang.org/u/tfiers)\
**Replies:** 4\
**Last updated:** [October 27, 2022, 3:39pm UTC](https://discourse.julialang.org/t/why-are-macros-re-pre-compiled/89319 "2022-10-27T15:39:26Z")

</div>

I am trying to improve load time of a package of mine. I found that a lot of this time was spent type-inferring macro-related functions, for example: Through using @match (Match.jl): Match.gen\_match\_expr(::String, :…

---

## [Help to analyze SnoopCompile results. What happens during \`boot.jl\`?](https://discourse.julialang.org/t/help-to-analyze-snoopcompile-results-what-happens-during-boot-jl/85633)

<div class="topic-metadata">

**Author:** [@guilhermebodin](https://discourse.julialang.org/u/guilhermebodin)\
**Replies:** 2\
**Last updated:** [August 11, 2022, 7:15pm UTC](https://discourse.julialang.org/t/help-to-analyze-snoopcompile-results-what-happens-during-boot-jl/85633 "2022-08-11T19:15:41Z")

</div>

Hello all! I have followed the tutorials on SnoopCompile about invalidation and inference and I still have a big question, in my case I have some parts of the code that trigger type inferences and I am working on fixing…

---

## [Julia precompilation limits or are there really any?](https://discourse.julialang.org/t/julia-precompilation-limits-or-are-there-really-any/55224)

<div class="topic-metadata">

**Author:** [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)\
**Replies:** 20\
**Last updated:** [June 20, 2022, 1:19pm UTC](https://discourse.julialang.org/t/julia-precompilation-limits-or-are-there-really-any/55224 "2022-06-20T13:19:17Z")

</div>

Hey, I tried to read every details on this topic but I still can’t be sure about what is the limiting factor at reaching “nocompilation” speed. (Under no compilation speed I mean the speed when you second time run the a…

---

## [Precompiling non-inferrable calls](https://discourse.julialang.org/t/precompiling-non-inferrable-calls/79771)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 2\
**Last updated:** [April 23, 2022, 4:54pm UTC](https://discourse.julialang.org/t/precompiling-non-inferrable-calls/79771 "2022-04-23T16:54:21Z")

</div>

Let me start of by saying that precompile is great. It can move a lot of compilation time from the package loading to the precompilation stage. For people unfamiliar with precompile, when calling it on a function, it pr…

---

## [\`@nospecialize\` for variadic and keyword arguments](https://discourse.julialang.org/t/nospecialize-for-variadic-and-keyword-arguments/77517)

<div class="topic-metadata">

**Author:** [@calebwin](https://discourse.julialang.org/u/calebwin)\
**Replies:** 3\
**Last updated:** [March 9, 2022, 9:14pm UTC](https://discourse.julialang.org/t/nospecialize-for-variadic-and-keyword-arguments/77517 "2022-03-09T21:14:20Z")

</div>

I have a function pt: function pt( args::Union{AbstractFuture,PartitionType,PartitionTypeComposition,Vector}...; kwargs..., ) that has a whole bunch of specializations: (determined using SnoopCompile): var"#pt…

---

## [Artificial ownership chaining from precompilation directives](https://discourse.julialang.org/t/artificial-ownership-chaining-from-precompilation-directives/55405)

<div class="topic-metadata">

**Author:** [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)\
**Replies:** 1\
**Last updated:** [February 16, 2021, 6:38pm UTC](https://discourse.julialang.org/t/artificial-ownership-chaining-from-precompilation-directives/55405 "2021-02-16T18:38:05Z")

</div>

Hey, I want to know if it is possible to do some artificial way to give ownership of the precompilation directives generated from SnoopCompile.jl to our package. My idea: @snoopi\_deep on a code → export it to prec…

---

## [Invalidation checker for packages \[code snippet\]](https://discourse.julialang.org/t/invalidation-checker-for-packages-code-snippet/54976)

<div class="topic-metadata">

**Author:** [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)\
**Replies:** 0\
**Last updated:** [February 10, 2021, 10:02am UTC](https://discourse.julialang.org/t/invalidation-checker-for-packages-code-snippet/54976 "2021-02-10T10:02:29Z")

</div>

Hey, I just wanted to share this code snippet which can be helpful to find where the imported invalidation comes from. using SnoopCompileCore using SnoopCompile using SnoopCompile: countchildren using Pkg using Printf …
