-
Notifications
You must be signed in to change notification settings - Fork 16
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
rimraf progress #13
Comments
An interesting avenue is the new
|
@boneskull and I had a brief conversation about this recently, he suggested we move our discussion here. He said:
For the record, I am personally an advocate of I could be correct on this, but I think rimraf is multi-threaded, from a quick skim of its source, While using a muti-threaded recursive rmdir in pure c/c++ could be more performant than rimraf, I don't know that https://en.cppreference.com/w/cpp/filesystem/remove will help, its docs don't indicate that it is multi-threaded, is it your understanding that it is, @refack? If its not, it might be slower than an implementation done with node APIs, as rimraf is. Its risky to speculate on performance, but I'll do it anyhow :-). I'd expect recursive rmdir (for any folder size deep&large enough for performance to matter) to be I/O bound, so concurrency might help, but doing things in C/C++ rather than js, or avoiding C++ to js transitions, is probably not the bigger win. |
I don't think it is multi-threaded, I'd assume it would be stated explicitly if it was. It's probably intentionally unspecified and left for implementers of HPC IMO the benefits of embedding it into core would be uniformity and reduced code maintenance, so I'd be in favor of either adopting Isaac's |
It was discussed in the last meeting that including
I'd think that @iansu thoughts? |
@bengl I am still interested in doing this. We also discussed having the external |
Personally I think globs and CLI are userspace territory and should be excluded from any node.js implementation. I think a function to recursively delete a distinct file or folder is what node.js should get. This would mean that the |
@coreyfarrell agree |
Progress on adding As for a JS implementation I'm in favor of porting a full |
Based on the discussion in our most recent meeting I think the consensus is to implement something like |
We left off where @bengl mentioned he was interested in looking into the rimraf problem.. I believe we decided to go the route of a JS implementation because a performant C++ implementation would be painful.
The text was updated successfully, but these errors were encountered: