-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
Improve Pkg's own precompilation to make Pkg.instantiate()
in a script faster.
#4079
Comments
This is the trace output from running Pkg.instantiate (sorted by time):
So it seems most time is spent in:
So we need to figure out why the precompile code is invalidated and why the |
Because it has a fixed number of arguments:
but the generated specialization is indeed
|
Something related to that it is nospecialize combined with being a kwarg function? |
We want to run a script locally, and we want to include an
instantiate()
step to make sure that the user has everything installed. The instantiate should be a noop most of the time, once things are installed. However, it takes almost 1 second the first time, vs a quarter of a second after that.Can we better precompile Pkg.instantiate so this doesn't have any compile time?:
The text was updated successfully, but these errors were encountered: