[BusyBox] Patch: libbb/unzip.c size reduction

Glenn McGrath bug1 at optushome.com.au
Sat Dec 1 02:58:58 UTC 2001


On Sat, 1 Dec 2001 01:36:26 -0800
"Aaron Lehmann" <aaronl at vitelus.com> wrote:

> I think a good improvement for the future would be sharing many global
> variables between unzip and gzip. Since these can't both be running at
> the same time in the same process, there would be no problem with
> this. *Theoretically*, the number of bytes of global variables that
> the entire binary needs equals the sum of the sizes of the global
> variables in the largest applet, but can you imagine how awful the
> code would look after doing that kind of compression?
> 

One thing i meant to look into is making gunzip and bunzip share the
same crc code, if the crc table they use (or generate) is the same it
could save a couple of kB, too many other things on my todo list at the
moment though.


Glenn





More information about the busybox mailing list