[XML-SIG] Reading characters

Thomas B. Passin tpassin@comcast.net
Wed, 22 May 2002 08:40:05 -0400


[Albert Chin]

> > If there are many "ch" chunks to add to the payload, that might be the
> > slowest part of the chain, especially if the payload gets large.  There
are
> > two standard ways to speed such string concatenations up.  You either
use
> > CStringIO and get the data from it when you are done adding, or you
append
> > each chunk to a list, then do list.join() at the end.  Either one can
give
> > dramatic speedups if that's your problem.
>
> WOW! WOW! WOW!
>

Yes, pretty amazing.  Works in javascript, too, where you do it with arrays.

Cheers,

Tom P