3 ms·
Python is 100% the wrong language to worry about this in. If your hot loops are in python and you care about performance, you should be rewriting them in anothe
by rcxdude 2y ago
Python is 100% the wrong language to worry about this in. If your hot loops are in python and you care about performance, you should be rewriting them in another language.
- sgarland 2y agoAgreed; I used it partially because TFA used it to demonstrate ideas, and partially because I’m very familiar with it. But you’re correct, of course. When I need something to go faster in Python, I write it in C. If it’s more than a small section, then a full rewrite is reasonable.
- spookie 2y agoEven if so, their point still stands. It's a tiny change that grants huge speedups.