[New-bugs-announce] [issue44579] shutil.copy() inefficient implementation in Windows

sfmc report at bugs.python.org
Wed Jul 7 08:11:29 EDT 2021


New submission from sfmc <Sergey_Filimonov at mentor.com>:

In Windows shutil.copy() uses _copyfileobj_readinto which copies file in user mode.
In Windows there is an fast API to copy file in kernel mode: CopyFile (see https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-copyfile).

----------
components: Library (Lib)
messages: 397076
nosy: sfmc
priority: normal
severity: normal
status: open
title: shutil.copy() inefficient implementation in Windows
type: performance
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44579>
_______________________________________


More information about the New-bugs-announce mailing list