On Saturday 18 June 2011 17:56, Timo Teräs wrote:
> We get a lot of entries there, and lookups are done many, many
> times. This gives a significant performance improvement.
>
> Signed-off-by: Timo Teräs <[email protected]>
> ---
modutils/modprobe.c:174: error: size of array 'BUG_G_too_big' is negative
With it fixed, 1000 modprobes with non-existent module using
this script:
i=1000
while test $((--i)) != 0; do
$1 modprobe qwertyui
done
# time ./z ./busybox_old 2>/dev/null
real 0m5.532s
user 0m4.695s
sys 0m0.359s
# time ./z ./busybox 2>/dev/null
real 0m5.325s
user 0m4.673s
sys 0m0.375s
As you see, the win exists, but it's small.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox