Message 288974 - Python tracker

Message288974

Author methane
Recipients goodboy, methane, rhettinger, terry.reedy
Date 2017-03-04.09:06:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488618410.36.0.857382595861.issue29659@psf.upfronthosting.co.za>
In-reply-to
Content
How about increasing default value to 32KiB or 64KiB too?

binutils's cp works well for most cases, while it doesn't have option to specify blocksize.
I want Python's copy functions works nice enough for common cases too.

binutils cp uses 128KiB block for normal file. see more information in https://github.com/coreutils/coreutils/blob/master/src/ioblksize.h

But copyfileobj can be used other file-likes.
On Linux, typical socket buffer size is 128KiB, and typical pipe buffer size is 64KiB.  So block size larger than 64KiB may cause unneeded blocking.
That's why I suggested 32KiB or 64KiB.
History
Date User Action Args
2017-03-04 09:06:50methanesetrecipients: + methane, rhettinger, terry.reedy, goodboy
2017-03-04 09:06:50methanesetmessageid: <1488618410.36.0.857382595861.issue29659@psf.upfronthosting.co.za>
2017-03-04 09:06:50methanelinkissue29659 messages
2017-03-04 09:06:50methanecreate