[PATCH 2/2] find: implement 'find -exec ... {} +' option

Bartosz Gołaszewski bartekgola at gmail.com
Wed Jun 18 20:10:02 UTC 2014


2014-06-17 17:02 GMT+02:00 Denys Vlasenko <vda.linux at googlemail.com>:
>
> Please try attached patch.

Thanks!

Please take a look at two patches I've submitted. The first one
proposes to use the system defined limit for command-line length to
further reduce the number of execve() calls. If you'll accept it, then
I'll also try to implement a growable buffer for xargs (as mentioned
in the comment), as it too calls execve() much more often than
coreutils' xargs.

While I was at it - I've noticed we could save a few bytes by creating
a wrapper around sysconf(_SC_CLK_TCK) to reduce the number of argument
evaluations - this is what the second patch does.

Bartosz


More information about the busybox mailing list