[issue21790] Change blocksize in http.client to the value of resource.getpagesize
STINNER Victor
report at bugs.python.org
Fri Jun 20 17:03:11 CEST 2014
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 <report at bugs.python.org>
<http://bugs.python.org/issue21790>
_______________________________________
More information about the Python-bugs-list
mailing list