Message54815
| 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:56 | admin | link | issue1501108 messages |
| 2007年08月23日 16:11:56 | admin | create |
|