-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
use Pkg.precompile during loading via Pkg hook #49242
use Pkg.precompile during loading via Pkg hook #49242
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are in the imminent process of removing Pkg, so this seems unwise to merge now
There was also an issue with Pkg.precompile suppressing warnings and other similar messages, which means this PR would harm usability and development until that fix is merged. |
I believe Ian has already addressed this in Pkg.jl. See also his message:
This just adds a hook, so it seems fine? If you load Pkg, it populates the hook, and switches you to parallel precompilation. |
We might want to move the parallel precompile code to Base. It doesn't really have anything to do with the package manager itself. You would want parallel precompile without having to load Pkg. |
The issue seems to be still open #48371? |
Oops. Just closed that |
Gotcha, yeah that makes more sense. |
Should this be merged before Pkg.precompile is moved to Base? It might be helpful to try it out and if it's ok aim to move it over for 1.10? |
IMO it's fine to merge it in the current state (using Pkg) so the whole concept gets tested. |
Won't be functional until Pkg has been bumped with JuliaLang/Pkg.jl#3433 |
Closes #48259
Previously
This PR
Note that errors and warnings will be shown, including warnings about precompilation waiting for tasks to finish etc. so this should be quite safe. But a switch could be added to turn it off.
Requires:
Also two minor bug fixes: