[BusyBox] [PATCH] size optimisation for fdformat.c
Larry Doolittle
ldoolitt at recycle.lbl.gov
Tue Jan 20 22:34:31 UTC 2004
[condensed, with attributions snipped, check the archive]
> > I think it would be good if we could modify the exit and
> > logging behaviour of the various xfuncs.
> > We could use a bitfield seperated to two groups, e.g.
> >
> > bb_error_msg is one of the most common functions we have so adding extra
> > functionality would add little overhead and would probably lead to a
> > reduction in the number of libbb functions and make the remaining ones
> > more usfull.
The overhead to be concerned with is the code to pass one more
parameter in each place the function is used. Since there are
so many such calls, as you point out, that can add up to quite
a few bytes. Unfortunately, that size is platform-dependent,
so there may not be a unique global optimum.
- Larry
More information about the busybox
mailing list