FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fs: make recursive readdir algorithms iterative by Ethan-Arrowood · Pull Request #47650 · nodejs/node · GitHub

/ node Public

fs: make recursive readdir algorithms iterative - #47650

Merged
nodejs-github-bot merged 6 commits into
nodejs:mainfrom
Ethan-Arrowood:improve-recursive-algs
May 10, 2023
Merged

fs: make recursive readdir algorithms iterative#47650
nodejs-github-bot merged 6 commits into
nodejs:mainfrom
Ethan-Arrowood:improve-recursive-algs

Conversation

Ethan-Arrowood commented Apr 20, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

This PR updates the new readdir recursive algorithm to be iterative. This helps avoid potential callstack issues for very large directories.

nodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels Apr 20, 2023
Ethan-Arrowood force-pushed the improve-recursive-algs branch from 7de1599 to 28fc566 Compare April 20, 2023 19:46
Ethan-Arrowood changed the title fs: make recursive readdir and opendir algorithms iterative fs: make recursive readdir algorithms iterative Apr 20, 2023
Ethan-Arrowood marked this pull request as ready for review April 20, 2023 19:48
Comment thread lib/fs.js
Comment thread lib/fs.js Outdated
Comment thread lib/fs.js Outdated
Comment thread lib/fs.js Outdated
Comment thread lib/fs.js
Comment thread lib/fs.js Outdated
Comment thread lib/fs.js Outdated
anonrig added author ready PRs that have at least one approval, no outstanding review comments, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Apr 20, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 20, 2023

Copy link
Copy Markdown
Collaborator

anonrig added the commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. label Apr 20, 2023

Copy link
Copy Markdown
Collaborator

Comment thread lib/fs.js Outdated
Co-authored-by: mscdex <mscdex@users.noreply.github.com>
Comment thread lib/fs.js Outdated
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Comment thread lib/fs.js Outdated
Comment thread lib/fs.js Outdated
Comment thread lib/fs.js Outdated
Ethan-Arrowood and others added 2 commits April 25, 2023 10:47
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

Copy link
Copy Markdown
Contributor Author

Thank you for the great recommendations @mscdex

I have made all the changes and thought I haven't timed it, the tests are running noticeably faster on my local machine 😄

Copy link
Copy Markdown
Contributor Author

Is there anything blocking this from merging?

aduh95 added the request-ci Add this label to start a Jenkins CI on a PR. label May 9, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 9, 2023

Copy link
Copy Markdown
Collaborator

anonrig commented May 9, 2023

Copy link
Copy Markdown
Member

Since 7 days have passed since you opened this PR, we can merge this with only 1 review, but I prefer to wait a couple of days to receive a review from @nodejs/fs team.

MoLow commented May 9, 2023

Copy link
Copy Markdown
Member

Since 7 days have passed since you opened this PR, we can merge this with only 1 review, but I prefer to wait a couple of days to receive a review from @nodejs/fs team.

I will take a look later

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

MoLow added the commit-queue Add this label to land a pull request using GitHub Actions. label May 10, 2023
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 10, 2023
nodejs-github-bot merged commit 12a93ce into nodejs:main May 10, 2023

Copy link
Copy Markdown
Collaborator

Landed in 12a93ce

targos pushed a commit that referenced this pull request May 12, 2023
PR-URL: #47650
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
danielleadams pushed a commit that referenced this pull request Jul 6, 2023
PR-URL: #47650
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
MoLow pushed a commit to MoLow/node that referenced this pull request Jul 6, 2023
PR-URL: nodejs#47650
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL