Hacker News new | ask | show | jobs
by rcxdude 547 days 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.
2 comments

Agreed; 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.

Even if so, their point still stands. It's a tiny change that grants huge speedups.