GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update shutil.rst to clarify copy performance on Windows · Issue #142407 · python/cpython

Update shutil.rst to clarify copy performance on Windows #142407

New issue
Copy link
New issue
Copy link
Closed
Closed
Update shutil.rst to clarify copy performance on Windows#142407
Copy link
Labels
OS-windowsdocsDocumentation in the Doc dirDocumentation in the Doc dir

Description

@NewUserHa
NewUserHa
opened on Dec 8, 2025
Issue body actions

Documentation

The original documention https://docs.python.org/3/library/shutil.html#shutil-platform-dependent-efficient-copy-operations about Platform-dependent efficient for Windows only mentioned that shutil.copyfile(), but which is a bad read and write loop still.

Actually the shutil.copy2() used the Windows API COPYFILE2, which is faster, and native call which means don't copy to memory on userspace, and support copy-on-write.
So this should be mentioned in documention to let people know rather than only knowing until read all the opened issues on github and source code of shutil.

Related info:
how shutil was implemented: #7160.
why only shutil.copy2() use Windows API COPYFILE2 while shutil.copyfile() not: #137074.
data that shows shutil.copy2() or Windows API COPYFILE2 can accelerate transfer speed: https://github.com/antirotor/speedcopy.
PR of new version copy2 implemented: #105055.

Linked PRs

  • gh-142407: Update shutil.rst to clarify copy performance on Windows  #142408
  • GH-142407: Doc: Clarify shutil.copyfile() does not use CopyFile2 on Windows #144354

Activity

  1. NewUserHa
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Dec 8, 2025
  2. github-project-automation
    added this to docs issueson Dec 8, 2025
  3. github-project-automation
    moved this to Todo in docs issueson Dec 8, 2025
  4. aisk
    added
    OS-windows
    on Dec 8, 2025
  5. CodeSeeed commented on Jan 31, 2026

    @CodeSeeed
    CodeSeeed
    on Jan 31, 2026
    More actions

    Hello! This would be my first contribution to CPython.
    I’d like to give this doc fix a try — is it okay if I work on it?
    I plan to update the "Platform-dependent efficient copy operations" section in shutil.rst based on the info in this thread.

    Thank you!

  6. zooba
    added a commit that references this issue on Feb 5, 2026

    gh-142407: Clarify copy performance on Windows in shutil docs (GH-142408

    d9a2e58
  7. zooba
    closed this as completedon Feb 5, 2026
  8. thunder-coding
    added a commit that references this issue on Feb 15, 2026

    pythongh-142407: Clarify copy performance on Windows in shutil docs (p…

    8e0154d
  9. ljfp
    added a commit that references this issue on Apr 25, 2026

    pythongh-142407: Clarify copy performance on Windows in shutil docs (p…

    211acda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowsdocsDocumentation in the Doc dirDocumentation in the Doc dir

    Projects

    • docs issues
      Status
      Todo
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.