-
-
Notifications
You must be signed in to change notification settings - Fork 198
Closed as not planned
Description
Would it be possible to cache the non-incremental base system image created first when using incremental=false? On my machine, this step alone takes usually between 2 and 3 minutes (see #839), making the development cycle with PC.jl painfully slow.
I see at least two variants how this could be achieved:
- Allow the user to control this manually by providing a
base_sysimage_cacheargument tocreate_sysimage(andcreate_library,create_app). By default it isnothing, but if set, an existing cache file will be read in and/or written out to the given locations. This requires the user to figure out when it is OK to reuse the base image and when it is not. - Enable automatic caching by providing a
base_sysimage_cacheargument tocreate_sysimage. It should be the path to a folder wherecreate_sysimagewill store the base sysimage plus information it needs to determine whether it is safe to reuse the image or not (e.g., by verifying the arguments tocreate_fresh_sysimageare identical, plus relevant Julia command line args that affect compilation).
To me, the first variant seems not too hard to implemented, and it could be later augmented to the second variant (and/or an automatic cache management using Scratch.jl managed storage).
dhanak
Metadata
Metadata
Assignees
Labels
No labels