Quickest way to build a long string?
Dale Strickland-Clark
dale at out-think.NOSPAMco.uk
Thu Oct 12 08:10:33 EDT 2000
I'm building a web page (table) from a whole bunch a database fields.
Each field needs the table row and cell tags added around it and then
be appended to the results so far.
String operations of this type tend to be memory thrashers so I was
wondering if anyone had conducted any tests to see which of the
approaches available might be the most efficient.
1. multiple string concetenation. (html = html + cell)
2. build list of components then use join at the end to make a string
3. something even cleverer
Thanks for any info.
Dale Strickland-Clark
Out-Think Ltd
Business Technology Consultants
More information about the Python-list
mailing list