-
Notifications
You must be signed in to change notification settings - Fork 54
Feature: Refactor this to use fs.openDir in future and not fs.readdir #105
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
Comments
easy |
See branch v4 for implementation: https://github.com/paulmillr/readdirp/tree/v4 Execute
|
Closed
Hi, @paulmillr Why is |
@yisibl ? |
|
What is the question? Open dir is 3x slower. Why is it slower? I don't know. Shitty node.js implementation. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
NodeJS > 12.11.1 will have async readdir support Landed in cbd8d71 ( nodejs/node@cbd8d71 ) as fs{Promises}.opendir(), which returns an fs.Dir, which exposes an async iterator.
to stay compatible we could implament it with the same stream interface and simply check if fs.openDir is there if not fallback to existing implamentation.
This is a lobby Request <3 by the microsoft/vscode community
The text was updated successfully, but these errors were encountered: