3 ms·
But you're still getting the perf hit of calling a function and checking if the module is already loaded
by Avery3R 4y ago
But you're still getting the perf hit of calling a function and checking if the module is already loaded
- deleted 4y ago[deleted]
- dagmx 4y agoIt’s a fairly simple dict lookup. The same lookup would happen when you use something from that module, so it’s fairly insignificant in the grand scheme. Besides, it’s Python. It’s not going to be super fast anyway. That extra check is never going to show up on a perf trace.
- formerly_proven 4y agoYeah well there's never been a line of Python that's free