Message117483
Here is a patch using peek() rather than seek(). There are some inefficiencies around (such as using read() to skip the consumed prefetched bytes), but the benchmark results are still as good as with seek():
Protocol 0
- dump: 142.5 ms
- load (seekable=False): 598.8 ms
- load (seekable=True): 240.2 ms
Protocol 1
- dump: 28.9 ms
- load (seekable=False): 253.2 ms
- load (seekable=True): 25.7 ms
Protocol 2
- dump: 28.9 ms
- load (seekable=False): 253.3 ms
- load (seekable=True): 25.7 ms |
|
Date |
User |
Action |
Args |
2010-09-27 22:23:15 | pitrou | set | recipients:
+ pitrou, collinwinter, amaury.forgeotdarc, belopolsky, vstinner, alexandre.vassalotti, hagen, BreamoreBoy |
2010-09-27 22:23:15 | pitrou | set | messageid: <1285626195.53.0.699037729019.issue3873@psf.upfronthosting.co.za> |
2010-09-27 22:23:14 | pitrou | link | issue3873 messages |
2010-09-27 22:23:13 | pitrou | create | |
|