Counting iterations
Andrew Dalke
dalke at dalkescientific.com
Mon Apr 11 16:05:01 EDT 2005
Derek Basch wrote:
> Interesting stuff Andrew. I do generally avoid string concantination
> for the reason listed in the Python Performance Tips but your analysis
> kinda puts that in question.
Thanks.
It was interesting for me to. I hadn't looked at the implementation
for string % before and was rather surprised to find that it
overallocates 100 bytes to reduce the number of allocs done. It's
simpler than the implementation I considered.
Andrew
dalke at dalkescientific.com
More information about the Python-list
mailing list