STINNER Victor added the comment: > 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. ---------- nosy: +haypo _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21790> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com