This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients
Date 2006-06-05.16:40:29
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
A series of write() calls is dog slow compared to
building-up a pool of data and then writing it in
larger batches.

The attached script demonstrates the speed-up
potential.  It compares a series of GzipFile.write()
calls to an alternate approach using cStringIO.write()
calls followed by a GzipFile.write(sio.getvalue()).  On
my box, there is a three-fold speed-up.
History
Date User Action Args
2007-08-23 16:11:56adminlinkissue1501108 messages
2007-08-23 16:11:56admincreate