News for hackers. Stuff that matters.
Re:Fast Python loops by srssays on Saturday April 08, 2017 @10:59AM (#14067214)
According to archive.org this essay is from at most June 2006, which would put it at Python 2.4 or earlier. The specific performance characteristics of Python will have changed greatly in the intervening period.
Re:Fast Python loops by jwilk on Saturday April 08, 2017 @02:23PM (#14068223)
The last sentence (grep for "since this essay was written") suggests that the article was written before the 'B' typecode was added to the array module.

This typecode was added in Python 1.5.

Re:Fast Python loops by anuraaga on Saturday April 08, 2017 @11:25AM (#14067355)
Thanks for finding this out, it explains a lot. IIRC, the str += optimization was added in 2.6 which would have made f1 quite fast.