[XML-SIG] HTML<->UTF-8 'codec'?

M.-A. Lemburg mal@lemburg.com
Sat, 20 Oct 2001 18:20:14 +0200


>
>
>I thought StringIO was also a win.
>
StringIO is the fastest variant around -- if you're building large 
strings this is the
way to go.

>>> as the string gets larger the speedup of using a list can be dramatic, even
>>> more than an order of magnitude.  Anything more than a few KB for the final
>>> string would probably benefit from the list approach - especially when you
>>> add to the string a character at a time.
>>
>