top | item 34134008

(no title)

Avery3R | 3 years ago

But you're still getting the perf hit of calling a function and checking if the module is already loaded

discuss

order

dagmx|3 years ago

It’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|3 years ago

Yeah well there's never been a line of Python that's free