Message117471
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. |
|
Date |
User |
Action |
Args |
2010-09-27 20:52:16 | pitrou | set | recipients:
+ pitrou, collinwinter, amaury.forgeotdarc, belopolsky, vstinner, alexandre.vassalotti, hagen, BreamoreBoy |
2010-09-27 20:52:16 | pitrou | set | messageid: <1285620736.19.0.259687265957.issue3873@psf.upfronthosting.co.za> |
2010-09-27 20:52:14 | pitrou | link | issue3873 messages |
2010-09-27 20:52:14 | pitrou | create | |
|