tj / node-prune

Remove unnecessary files from node_modules (.md, .ts, ...)
MIT License
4.4k stars 130 forks source link

Use buffered channel #51

Open StarpTech opened 6 years ago

StarpTech commented 6 years ago

When we create multiple receivers we should use a buffered channel of the same size as the worker size (NumCPU) to reduce the chance of blocking.