[BusyBox] [PATCH] Size optimization: top

Glenn McGrath bug1 at iinet.net.au
Tue Sep 14 18:58:54 UTC 2004


On Sun, 5 Sep 2004 03:19:35 -0300 (BRT)
Felipe Kellermann <stdfk at terra.com.br> wrote:

> This is just a size optimization patch.
> 
>    text    data     bss     dec     hex filename
>    4442       0     124    4566    11d6 procps/top-old.o
>    4330       0     124    4454    1166 procps/top.o
> 
> Removes unnecessary automatic variables and code.

hmm, i tested it this and all the sort functions were the wrong way
around, the small numbers were being sorted to the top instead of the
bottom.
i.e. all the 0% CPU processes were being sorted to the top of the
screen.

Your logic doesnt seem to have changed it, so i think the bug was
already there.

I checked in a modified version.



Glenn




More information about the busybox mailing list