voidcosmos / npkill

List any node_modules 📦 dir in your system and how heavy they are. You can then select which ones you want to erase to free up space 🧹
https://npkill.js.org
MIT License
8.3k stars 188 forks source link

Performance Improvement #121

Open ScriptedAlchemy opened 2 years ago

ScriptedAlchemy commented 2 years ago

Is your feature request related to a problem? Please describe. Deleting monorepo packages is pretty slow - it would be nice if there was a divide and concur flag that I could set.

Describe the solution you'd like When hitting space and start deleting a directory, parse the files,folders and group them into smaller array sets like 50 packages per array, then pass this to a worker or something to execute FS deletes in parallel

Describe alternatives you've considered None at this point

zaldih commented 2 years ago

Thank you for opening this issue!

In principle the deletion should be non-blocking so this should not happen.

Just in case this happens on Mac?