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

On the contrary, the time per inner iteration is slightly higher this way and the same conclusions hold:

1. python3.2 str() is at least as fast as '%s' formatting

2. '%s' is slightly faster than str() with python2.7

3. theint.__str__() is faster than either alternative in all cases



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

Search: