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 vstinner
Recipients Claudiu.Popa, demian.brecht, vstinner
Date 2014-06-20.15:03:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> When sending data, the blocksize is currently hardcoded to 8192.

Yeah, same value for io.DEFAULT_BUFFER_SIZE.

> It should likely be set to the value of resource.getpagesize().

Could you please elaborate? A page size is 4096 bytes on my Linux. So your page double the number of calls to read(), right?

shutil.copyfileobj() uses a buffer of 16 KB by default.

See also the issue #21679 which adds a private copy of the stat().st_blksize attribute in a FileIO object.
Date User Action Args
2014-06-20 15:03:11vstinnersetrecipients: + vstinner, Claudiu.Popa, demian.brecht
2014-06-20 15:03:11vstinnersetmessageid: <>
2014-06-20 15:03:11vstinnerlinkissue21790 messages
2014-06-20 15:03:11vstinnercreate