-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: make recursive readdir algorithms iterative #47650
fs: make recursive readdir algorithms iterative #47650
Conversation
7de1599
to
28fc566
Compare
Co-authored-by: mscdex <[email protected]>
Co-authored-by: Antoine du Hamel <[email protected]>
Co-authored-by: Antoine du Hamel <[email protected]>
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 😄 |
Is there anything blocking this from merging? |
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 |
Landed in 12a93ce |
PR-URL: #47650 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: #47650 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
PR-URL: nodejs#47650 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
This PR updates the new
readdir
recursive algorithm to be iterative. This helps avoid potential callstack issues for very large directories.