• Inada Naoki's avatar
    bpo-36103: change default buffer size of shutil.copyfileobj() (GH-12115) · 4f190306
    Inada Naoki yazdı
    It is changed from 16KiB to 64KiB.  The previous default value
    is used since 1990.
    
    coreutils chose 128 KiB as minimum buffer size for block device I/O.
    
    But shutil.copyfileobj() can be used for non block devices.
    So I choose more conservative value.
    
    As my quick benchmark, performance difference between 64KiB and
    128 KiB is up to ~5%.  On the other hand, performance difference
    between 32 KiB and 64 KiB can be more than 10% when file is fully
    buffered.
    
    This is why 64 KiB is rational value.
    4f190306
Adı
Son kayıt (commit)
Son güncelleme
.azure-pipelines Loading commit data...
.github Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Programs Loading commit data...
Python Loading commit data...
Tools Loading commit data...
m4 Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README.rst Loading commit data...
aclocal.m4 Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...