Open MarcDelahousse opened 5 years ago
What do you mean by "freeze sub-app"?
Basically the idea is this. Discovery has a cost to it. We could have the equivalent of a freeze file that already have all the info gathered and so can bypass discovery and just directly read the modules to load.
The sub app (like list, info, and submit) would be what creates this freeze file. It would need to be updated/invalidated when a new bundle is pip installed or uninstalled.
We need a mechanism to shortcut bundle discovery. If bundles don't change from run to run, we could have a freeze sub-app that could output the list of modules containing tasks. If discovery notices this info, it could forgo active discovery and only import those modules.
Also, this mechanism could allow bundles to explicitly define the tasks they produce.