Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs: use streaming directory processing in cp() #41351

Merged
merged 2 commits into from Dec 31, 2021

Commits on Dec 29, 2021

  1. fs: use async directory processing in cp()

    The readdir() functions do not scale well, which is why
    opendir(), etc. were introduced. This is exacerbated in the
    current cp() implementation, which calls readdir() recursively.
    
    This commit updates cp() to use the opendir() style iteration.
    cjihrig committed Dec 29, 2021
    Copy the full SHA
    b5aa0b3 View commit details
    Browse the repository at this point in the history
  2. Update lib/internal/fs/cp/cp.js

    Co-authored-by: Luigi Pinca <luigipinca@gmail.com>
    cjihrig and lpinca committed Dec 29, 2021
    Copy the full SHA
    625c12f View commit details
    Browse the repository at this point in the history