On Fri, 25 Feb 2005 17:14:24 +0100, Diez B. Roggisch wrote: > Maybe [c]StringIO can be of help. I don't know if it's iterator is lazy. But > at least it has one, so you can try and see if it improves performance :)
Excellent! I somehow missed that module. StringIO speeds up the iteration by a factor of 20! Thanks Jeremy -- http://mail.python.org/mailman/listinfo/python-list