-
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? 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
Comments
easy |
See branch v4 for implementation: https://github.com/paulmillr/readdirp/tree/v4 Execute
|
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. |
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: