[PATCH] nameif cleanup

Sam Robb uclibc at oneparticularharbor.net
Tue Jan 17 02:41:07 UTC 2006


On Mon, 2006-01-16 at 06:59 +0000, Rob Sullivan wrote:
> Perhaps it'd be a good idea to do a Busybox-wide search just to see
> how often memset(&foo, 0, ...) is used; if it's used consistently,
> then that's enough reason to create a function in libbb.

Wow.  A place to contribute in some small way :-)

>From the Busybox 1.01 source:

- 221 instances of memset().
- Only 15 instances that are *not* memset(&f, 0, ...) or the equivalent

So that's what - a potential 800 bytes savings or so across all
of Busybox, just from removing the second argument?  Minus the
cost of the new function in libbb...

-Samrobb




More information about the busybox mailing list