3 ms·
This is one of the most common optimizations in Python, simply because the lookup code for modules/class instances is horrible and slow.
by wheelerof4te 4y ago
This is one of the most common optimizations in Python, simply because the lookup code for modules/class instances is horrible and slow.
- staticassertion 4y agoIt'd be nice if there were a tool you could run over your code that did this sort of thing. Even if it can technically break shit in absurd cases, I'd totally run it on my code, which isn't absurd.