delimiting text file??
Preston Landers
prestonlanders at my-deja.com
Mon Oct 18 14:22:37 EDT 1999
Just to summarize for other people,
It looked like the fastest method of string building is string.join'ing
a list/tuple. It seems to be about 20-30% faster than s = "%s" %
string style stuff. s = foo + bar is atrociously slow.
Note that I did not run these benchmarks myself, I'm just reporting on
the old discussion.
---Preston
In article <380752EC.3C105EAC at easystreet.com>,
Al Christians <achrist at easystreet.com> wrote:
> If you are doing this enough to take efficiency seriously, go to
> deja.com and look at the thread we had on
>
> "string.join() vs % and + operators"
>
> about six months ago. There were some examples posted by the experts,
> along with some timings, etc. Basically the same subject as this
> thread.
--
|| Preston Landers <prestonlanders at my-deja.com> ||
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list