Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: