-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Cache the "base" sysimage using Scratch.jl #916
Comments
That would be a great feature to have! It slightly relates to some of the suggestions in #858. One question that was hard for me to answer though, is how to ensure that the correct cached base sysimage is determined based on the Julia flags (and other environmental variables?). I am thinking that things like Also, given that there is (likely) a myriad of different combinations, do we only want to keep the latest cache image or one for each possible feature set? Also, how to prevent race conditions during generation? |
I think it is fine for code in Base to be compiled with the default arguments. The app/library specific code will then be compiled with whatever specific options are given. The CPU-target has to be correct though I think.
We could have a PID lock for the sysimage being generated. |
OK, this makes sense.
Sounds good. In general, if we add such a caching feature, it would be good if we can add functions to also remove the cached file and/or force the regeneration of a new file upon next use. |
This seems to be a duplicate of #841. I would very much welcome this feature! |
When creating apps/libraries we first generate a "base" sysimage that does not contain e.g. the precompiled code from the default sysimage that Julia comes bundled with. We could cache that sysimage and reuse it so we do not have to regenerate it over and over.
The text was updated successfully, but these errors were encountered: