Splitting strings - by iterators?

Jeremy Sanders jeremy+plusnews at jeremysanders.net
Fri Feb 25 11:44:45 EST 2005


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



More information about the Python-list mailing list