4 ms·
For thousands of arguments this sloution is much slower (high CPU usage) than xargs, because either it implements the logic as a shell script (slow) or it runs
by ptspts 5y ago
For thousands of arguments this sloution is much slower (high CPU usage) than xargs, because either it implements the logic as a shell script (slow) or it runs an external program for each argument (slow).
- fiddlerwoaroof 5y agoSure, if performance matters use xargs. I find this is easier to read and think about.