[issue44579] shutil.copy() inefficient implementation in Windows

Steve Dower report at bugs.python.org
Wed Jul 7 10:32:41 EDT 2021


Steve Dower <steve.dower at python.org> added the comment:

> Note that CopyFileEx() is a high-level Windows API function, not a "kernel mode" copy.

This is true today, but could change whenever Windows feels like changing it. If we switch to the native API then we'll get any advantage there automatically.

The only challenge is in managing changes to semantics (that is, anything extra we do to "match" Unix that isn't normally how copies work on Windows - personally, I'd rather be more native on Windows anyway).

----------

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


More information about the Python-bugs-list mailing list