search for a string?

Emile van Sebille emile at fenx.com
Mon Jun 5 14:32:07 EDT 2000


> I just tried to look up where I read a comparison between
the
> two methods, and I couldn't find it, so I could be
imagining
> things. Can somebody maybe confirm this?
>
> TD

I just compared 5 different ways in python of combining
strings
and it looks like '%s...%s' % tuple is comparable to adding
for small numbers (5-10) of smallish strings (10-250 byte),
and gets significantly better with more (25+) and larger
(1k+)
strings, where it stays comparable to string.join and the
newer "".join.

Emile van Sebille
emile at fenx.com
-------------------






More information about the Python-list mailing list