3 ms·
Why though? import already does the similar check internally. Your global check might actually be more inefficient because it would need to check more dicts ins
by dagmx 4y ago
Why though? import already does the similar check internally. Your global check might actually be more inefficient because it would need to check more dicts instead.
E.g first the local dict, then the global and then the modules dict, instead of just the global+modules