3 ms·
It's not only in the case of plugins. If a tool has different capabilities that use different imports, why load all of them if only a subset is required? As a
by zvr 1y ago
It's not only in the case of plugins.
If a tool has different capabilities that use different imports, why load all of them if only a subset is required?
As a simple example, a tool that can generate output in various formats (e.g., json, csv, xml, ...) should only import the appropriate modules to handle the output format after having determined which ones will be used in this invocations.