svn commit: trunk/busybox/scripts

landley at busybox.net landley at busybox.net
Tue May 30 19:19:46 UTC 2006


Author: landley
Date: 2006-05-30 12:19:45 -0700 (Tue, 30 May 2006)
New Revision: 15242

Log:
Since we have less than 100k of usage.h data anyway, using bzip -9 is silly.
That says use 900k chunks when compressing, which needs about 4 megs of data
structures to undo the Burrows-Wheeler transform.  Switching it down to
bzip -1 (100k chunks) should have no impact on the compression (since it
still all fits in one chunk) but should reduce runtime decompression memory
requirements to something like 500k.  Still larger than gunzip, but not
egregiously so.


Modified:
   trunk/busybox/scripts/usage_compressed


Changeset:
Modified: trunk/busybox/scripts/usage_compressed
===================================================================
--- trunk/busybox/scripts/usage_compressed	2006-05-30 18:49:05 UTC (rev 15241)
+++ trunk/busybox/scripts/usage_compressed	2006-05-30 19:19:45 UTC (rev 15242)
@@ -6,7 +6,7 @@
 test -x "$loc/usage" || exit 1
 
 echo 'static const char packed_usage[] = '
-"$loc"/usage | bzip2 -9 | od -v -t x1 \
+"$loc"/usage | bzip2 -1 | od -v -t x1 \
 | $SED -e 's/^[^ ]*//' -e 's/ \(..\)/\\x\1/g' -e 's/^\(.*\)$/"\1"/' || exit 1
 echo ';'
 sz=`"$loc"/usage | wc -c` || exit 1




More information about the busybox-cvs mailing list