[PATCH] store --help messages in compressed form. saves 35k

Denis Vlasenko vda at ilport.com.ua
Wed Apr 5 08:40:48 UTC 2006


On Wednesday 05 April 2006 10:36, Bernhard Fischer wrote:
> On Wed, Apr 05, 2006 at 09:57:20AM +0300, Denis Vlasenko wrote:
> >On Wednesday 05 April 2006 09:41, Denis Vlasenko wrote:
> >> Subject basically says it all.
> >> 
> >> Run tested with and without verbose help messages.
> 
> >+static const char *unpack_usage_messages(void)
> >+{
> []
> >+		check_header_gzip(input[0]);
> >+		inflate_gunzip(input[0], output[1]);
> 
> Why don't you lzma (or bzip2) them?

Indeed. bunzip2 code is even smaller than gunzip.
(lzma is non-standard, may be unavailable on build box,
so I hesitate to use it).

See attached patch.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compressed_usage_bz.patch
Type: text/x-diff
Size: 5507 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060405/5541f176/attachment.bin 


More information about the busybox mailing list