Often times I have some code in a package that executes only during precompilation, not at run time. AFAIK Julia saves the MethodInstance
s of all such compiled Method
s into the precompilation files, for some reason. How to turn that off?
An example is a line such as this:
const SomeType = Union{typeof.((func1, func2, func3))} # the broadcast gets compiled unnecessarily