Author pitrou
Recipients BreamoreBoy, alexandre.vassalotti, amaury.forgeotdarc, belopolsky, collinwinter, hagen, pitrou, vstinner
Date 2010-09-27.20:52:14
SpamBayes Score 0.00073035
Marked as misclassified No
Message-id <1285620736.19.0.259687265957.issue3873@psf.upfronthosting.co.za>
In-reply-to
Content
One problem with the seek() approach is that some file-like objects have expensive seeks. One example is GzipFile, where seek(n) is O(n) (it first rewinds to the start of file, then reads n decompressed bytes). In the end, unpickling from a GzipFile becomes O(n**2).

I will try to use peek() instead.
History
Date User Action Args
2010-09-27 20:52:16pitrousetrecipients: + pitrou, collinwinter, amaury.forgeotdarc, belopolsky, vstinner, alexandre.vassalotti, hagen, BreamoreBoy
2010-09-27 20:52:16pitrousetmessageid: <1285620736.19.0.259687265957.issue3873@psf.upfronthosting.co.za>
2010-09-27 20:52:14pitroulinkissue3873 messages
2010-09-27 20:52:14pitroucreate