[BusyBox] [PATCH] size optimisation for fdformat.c

Glenn McGrath bug1 at iinet.net.au
Wed Jan 21 21:48:49 UTC 2004


On Wed, 21 Jan 2004 15:29:26 +0000
Tito <farmatito at tiscali.it> wrote:

> On Wednesday 21 January 2004 08:11, Glenn McGrath wrote:

> I'm little confused now............
> you want to make every bb_err function  call check for this var
> rather than pass a flag to bb_err through the xfunc?
> if so you have to set this var every time?
> 
> global_var = DIE|ERROR|WHATEVER;
> fd = xfopen(.......);
> global_var= DIE|PERROR;
> xreadlink(....);
> and so on.
> 
> Wouldn't this waste more space than:
> 
> fd = xfopen(path, mode, DIE|ERROR);

Im not sure, i would have to try test some code, but my gut feeling is
that lots of assignment operations would be cheaper than adding an extra
paramater to every xfunction.



Glenn





More information about the busybox mailing list