Skip to content

Commit fb8b5eb

Browse files
committed
incremental performance: remove duplicated work during loading
1 parent f02535a commit fb8b5eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dump.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2805,7 +2805,8 @@ JL_DLLEXPORT int jl_save_incremental(const char *fname, jl_array_t *worklist)
28052805
for (i = 0; i < len; i++) {
28062806
jl_module_t *m = (jl_module_t*)jl_array_ptr_ref(mod_array, i);
28072807
assert(jl_is_module(m));
2808-
jl_collect_lambdas_from_mod(lambdas, m);
2808+
if (m->parent == m) // some toplevel modules (really just Base) aren't actually
2809+
jl_collect_lambdas_from_mod(lambdas, m);
28092810
}
28102811
jl_collect_methtable_from_mod(lambdas, jl_type_type_mt);
28112812
jl_collect_missing_backedges_to_mod(jl_type_type_mt);

0 commit comments

Comments
 (0)