Globbing (was Re: HAMMER update 10-Feb-2008)
Simon 'corecode' Schubert
corecode at fs.ei.tum.de
Tue Feb 12 06:26:21 PST 2008
Chris Turner wrote:
> just being pedantic but ignoring performance while discussing memory
> seems a bit short sighted - for e.g. 1M files an 'xargs -L' will create
> 1M fork()'s instead of 1, which will change the execution time
> significantly..
Who said that you would use xargs -n 1? Obviously you would leave the
selection of how many arguments can fit into the command line up to
xargs. Then you might (depending on the size of the individual
arguments) only fork 100 times or so.
cheers
simon
More information about the Kernel
mailing list