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

Bring globals into local scope, never use '.' in tight loops, avoid function calls, etc [1], sure make ugly python code. But, wow, it really can make a difference.

[1] https://wiki.python.org/moin/PythonSpeed/PerformanceTips



I'm not sure how many of those are valid any more.




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

Search: