3 ms·
Instead of making up some arcane ways to hack Python, try using builtin data structures and functions more. I see a bunch of Python code that is just a massive
by wheelerof4te 4y ago
Instead of making up some arcane ways to hack Python, try using builtin data structures and functions more.
I see a bunch of Python code that is just a massive dump of custom classes on top of classes, inheriting other classes.
The amount of pointer chasing to get to the actual primitives can be mind-bogling. Add that to a big nested loop and you've got a performance tragedy.