Python speed-up
Alex Martelli
aleaxit at yahoo.com
Wed Sep 22 15:57:01 EDT 2004
More information about the Python-list mailing list
Wed Sep 22 15:57:01 EDT 2004
- Previous message (by thread): Python speed-up
- Next message (by thread): Python speed-up
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Gerrit <gerrit at nl.linux.org> wrote: ... > Why isn't cStringIO faster than concatenating strings? > > Using python2.4: Python 2.4 did reduce the cost of the bigstring+=littlepiece trap. But I do agree there's nevertheless something strange here. cStringIO is using a very different strategy, a buffer that doubles and gets realloc'd every time it would fill up -- maybe that's tripping up its performance...? Alex
- Previous message (by thread): Python speed-up
- Next message (by thread): Python speed-up
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list