Message171224
Hi,
I didn't have any buffering size set before, so I believe it defaults to 0 (no buffering), right? Wouldn't this be the behaviour on both 2.x and 3.x?
I'm using a 1.5 Mb bzip2 file - I just tried setting buffering to 1000 and 1000000, and it didn't seem to make any noticeable difference to the speed of reading in the file. E.g.:
f = bz2.BZ2File(filename, 'rb', buffering=1000000)
What sort of values did you use in relation to your compressed file size to get the improvements?
Cheers,
Victor |
|
Date |
User |
Action |
Args |
2012-09-25 06:19:42 | victorhooi | set | recipients:
+ victorhooi, nadeem.vawda, serhiy.storchaka |
2012-09-25 06:19:42 | victorhooi | set | messageid: <1348553982.03.0.280208644879.issue16034@psf.upfronthosting.co.za> |
2012-09-25 06:19:41 | victorhooi | link | issue16034 messages |
2012-09-25 06:19:41 | victorhooi | create | |
|