Add excluded_packages keyword argument for create_sysimage #791
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added a
excluded_packageskeyword tocreate_sysimagewhich allows certain packages to be unconditionally excluded in the sysimage.Such option can be useful when one want to compile a sysimage for package development where the dependences contain heavy packages with long load times (e.g. found using
@time_imports using MyDevPackagein Julia >= 1.8).In this case, building a system image including the dependencies can significantly reduce the load times of the package in development.
For example, one may want to create a system image with
MyDevPackageincluded in thepackageskeyword argument withinclude_transitive_dependencies=trueto ensure its dependencies are included. Then putMyDevPackageinsideexcluded_packagessoMyDevPackageitself is not included in the sysimage (otherwise one cannot developMyDevPackage.