04c1417602
Sometimes ARG_MAX is small (like 32k) yet sysconf(_SC_ARG_MAX) is big, and people prefer using the bigger value. OTOH, with sufficiently large ARG_MAX, further wins from sysconf(_SC_ARG_MAX) being bigger are exponentially smaller: you can see 4 times fewer fork+execs when you run find, but when each execed process already takes a thousand parameters it's likely execution time is dominated by what that process does with each parameter. Thus, with this change ARG_MAX is used if it's sufficiently big, otherwise sysconf(_SC_ARG_MAX) is used. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> |
||
---|---|---|
.. | ||
.gitignore | ||
applet_metadata.h | ||
applets.src.h | ||
ar.h | ||
bb_archive.h | ||
bb_e2fs_defs.h | ||
busybox.h | ||
dump.h | ||
fix_u32.h | ||
grp_.h | ||
inet_common.h | ||
libbb.h | ||
liblzo_interface.h | ||
platform.h | ||
pwd_.h | ||
rtc_.h | ||
shadow_.h | ||
unicode.h | ||
usage.src.h | ||
volume_id.h | ||
xatonum.h | ||
xregex.h |