You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
precompile: don't waste memory on useless inferred code (#56749)
We never have a reason to reference this data again since we already
have native code generated for it, so it is simply wasting memory and
download space.
$ du -sh {old,new}/usr/share/julia/compiled
256M old
227M new
(cherry picked from commit dfe6a13)
!jl_generating_output()) || // don't delete code when generating a precompile file, trading memory in the short term for avoiding likely duplicating inference work for aotcompile
9682
+
jl_atomic_load_relaxed(&codeinst->invoke) == jl_fptr_const_return_addr)) { // unless it is constant (although this shouldn't have had code in the first place)
9683
+
// Never end up in a situation where the codeinst has no invoke, but also no source, so we never fall
0 commit comments