diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-05-30 06:05:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-30 06:05:41 (GMT) |
commit | 413d955f8ec88a7183f91d7ad8b0ff7def803de3 (patch) | |
tree | 5e82b37895fa363bf445df67f61a56ff5553de61 /Misc/NEWS.d/3.8.0a1.rst | |
parent | a16387ab2d85f19665920bb6ff91a7e57f59dd2a (diff) | |
download | cpython-413d955f8ec88a7183f91d7ad8b0ff7def803de3.zip cpython-413d955f8ec88a7183f91d7ad8b0ff7def803de3.tar.gz cpython-413d955f8ec88a7183f91d7ad8b0ff7def803de3.tar.bz2 |
bpo-36610: shutil.copyfile(): use sendfile() on Linux only (GH-13675)
...and avoid using it on Solaris as it can raise EINVAL if offset is equal or bigger than the size of the file
Diffstat (limited to 'Misc/NEWS.d/3.8.0a1.rst')
-rw-r--r-- | Misc/NEWS.d/3.8.0a1.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Misc/NEWS.d/3.8.0a1.rst b/Misc/NEWS.d/3.8.0a1.rst index 3d5e633..f4b0a04 100644 --- a/Misc/NEWS.d/3.8.0a1.rst +++ b/Misc/NEWS.d/3.8.0a1.rst @@ -4450,7 +4450,7 @@ data_received() being called before connection_made(). :func:`shutil.copyfile`, :func:`shutil.copy`, :func:`shutil.copy2`, :func:`shutil.copytree` and :func:`shutil.move` use platform-specific -fast-copy syscalls on Linux, Solaris and macOS in order to copy the file +fast-copy syscalls on Linux and macOS in order to copy the file more efficiently. On Windows :func:`shutil.copyfile` uses a bigger default buffer size (1 MiB instead of 16 KiB) and a :func:`memoryview`-based variant of :func:`shutil.copyfileobj` is used. The speedup for copying a 512MiB file |