[PATCH 2/2] (g)unzip: Optimize inflate_codes()
Joakim Tjernlund
joakim.tjernlund at transmode.se
Thu Feb 18 07:55:42 UTC 2010
>
> On Wed, Feb 17, 2010 at 03:27:10PM -0600, Rob Landley wrote:
> > On ubuntu 9.10 for x86-64, /lib/libz.so.1.2.3.3 is 96,768 bytes (stripped). I
> > just built busybox with both gzip and gunzip, and it was 30,824 bytes. Our
> > version, both compression and decompresson, is less than 1/3 the size of the
> > basic zlib library that comes with the system. (And yes both files are
> > stripped according to the "file" command.)
> >
> > You too could have checked this.
>
> I just hacked busybox to use zlib (dynamically linked) instead of its internal
> compression/decompression routines and got this out of bloatcheck:
>
> (add/remove: 0/38 grow/shrink: 1/4 up/down: 67/-11449) Total: -11382 bytes
> text data bss dec hex filename
> 812761 2444 9288 824493 c94ad busybox_old
> 802011 2464 9288 813763 c6ac3 busybox_unstripped
>
> So, if you have zlib on disk already due to some other application's
> dependency, BusyBox contains over 11KB of bloat.
Some gunzip performance numbers would be great, could you please?
Jocke
More information about the busybox
mailing list