[PATCH 2/2] (g)unzip: Optimize inflate_codes()

Rob Landley rob at landley.net
Fri Feb 19 13:58:28 UTC 2010


On Thursday 18 February 2010 03:51:53 Natanael Copa wrote:
> On Thu, Feb 18, 2010 at 6:38 AM, Dan Fandrich <dan at coneharvesters.com> 
wrote:
> > 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.
>
> This would actually be nice to have as a config option, regardless
> what gz implementations ends un in busybox.

I'm writing a new one.  I can make it export library bindings if you'd like.

He's removing 11k from busybox to add a 90k shared library to the OS.  I'm 
pretty sure we can do better than that.

Rob
-- 
Latency is more important than throughput. It's that simple. - Linus Torvalds


More information about the busybox mailing list