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

Refactor copy to use opendir #1028

Merged
merged 3 commits into from Feb 10, 2024
Merged

Conversation

SukkaW
Copy link
Contributor

@SukkaW SukkaW commented Nov 28, 2023

The PR closes #972.

The readdir returns the contents of a directory all at once, which can be slow (and blocking) when a directory contains many items. The opendir returns the contents of a directory one at a time.

Unlike the original Node.js changes (which copy items one by one), this PR retains copy in parallel (as introduced in #1026).

lib/copy/copy.js Outdated Show resolved Hide resolved
@SukkaW
Copy link
Contributor Author

SukkaW commented Feb 8, 2024

@JPeer264 @manidlou @RyanZim

Just sending a friendly reminder since the PR hasn't been reviewed in three months. Would you mind taking a look at it?

Copy link
Collaborator

@manidlou manidlou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@manidlou
Copy link
Collaborator

@SukkaW sorry for long delay! I appreciate the work!

@RyanZim RyanZim merged commit 1d931c8 into jprichardson:master Feb 10, 2024
12 checks passed
eventpush pushed a commit to Exponential-Workload/pkgs that referenced this pull request Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use fs.opendir() in copy*()
3 participants