Message85780
Victor, Unpickler shouldn't raise an error if the given file object does
support seek(); it should gracefully fall back to using only read() and
readline(). Also, I think you could get a greater performance
improvement by using peek() and avoiding backward seeks. As far as I
know, a backward seek may invalidate the internal buffer of the file
object, thus forcing a read from disk.
Incidentally, I think it would be nice to add to Python 3 some kind of
file protocol as this would provide a way to mitigate the function call
overhead for I/O operations. |
|
Date |
User |
Action |
Args |
2009-04-08 17:28:07 | alexandre.vassalotti | set | recipients:
+ alexandre.vassalotti, collinwinter, amaury.forgeotdarc, pitrou, vstinner, hagen |
2009-04-08 17:28:07 | alexandre.vassalotti | set | messageid: <1239211687.45.0.790231396471.issue3873@psf.upfronthosting.co.za> |
2009-04-08 17:28:05 | alexandre.vassalotti | link | issue3873 messages |
2009-04-08 17:28:04 | alexandre.vassalotti | create | |
|