Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallelize Pkg.precompile #2018

Merged
merged 15 commits into from
Sep 15, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ function precompile(ctx::Context)
precomp_events[pkgid.uuid] = Base.Event()
was_recompiled[pkgid.uuid] = false
end
# TODO: since we are a complete list, but not topologically sorted, handling of recursion will be completely at random

IanButterworth marked this conversation as resolved.
Show resolved Hide resolved
errored = false
@sync for (i, pkg) in pairs(pkgids)
paths = Base.find_all_in_cache_path(pkg)
Expand All @@ -937,7 +937,6 @@ function precompile(ctx::Context)
for path_to_try in paths::Vector{String}
staledeps = Base.stale_cachefile(sourcepath, path_to_try, Base.TOMLCache()) #|| any(deps_recompiled)
staledeps === true && continue
# TODO: else, this returns a list of packages that may be loaded to make this valid (the topological list)
stale = false
break
end
Expand Down