This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author victorhooi
Recipients nadeem.vawda, serhiy.storchaka, victorhooi
Date 2012-09-25.06:19:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348553982.03.0.280208644879.issue16034@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2012-09-25 06:19:42victorhooisetrecipients: + victorhooi, nadeem.vawda, serhiy.storchaka
2012-09-25 06:19:42victorhooisetmessageid: <1348553982.03.0.280208644879.issue16034@psf.upfronthosting.co.za>
2012-09-25 06:19:41victorhooilinkissue16034 messages
2012-09-25 06:19:41victorhooicreate