aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-30 19:19:45 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-30 19:19:45 +0000
commitba942c06c640bf1da037c5493938459d607728b3 (patch)
treebbd45b1e8172b5dd7cc51318a4e9e7cedf5997b5
parent9b40d1e30c3a312720db63098e2542d454fc7664 (diff)
downloadbusybox-w32-ba942c06c640bf1da037c5493938459d607728b3.tar.gz
busybox-w32-ba942c06c640bf1da037c5493938459d607728b3.tar.bz2
busybox-w32-ba942c06c640bf1da037c5493938459d607728b3.zip
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. git-svn-id: svn://busybox.net/trunk/busybox@15242 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--scripts/usage_compressed2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/usage_compressed b/scripts/usage_compressed
index 59e93e669..8e2228af2 100644
--- a/scripts/usage_compressed
+++ b/scripts/usage_compressed
@@ -6,7 +6,7 @@ test "$loc" || loc=.
6test -x "$loc/usage" || exit 1 6test -x "$loc/usage" || exit 1
7 7
8echo 'static const char packed_usage[] = ' 8echo 'static const char packed_usage[] = '
9"$loc"/usage | bzip2 -9 | od -v -t x1 \ 9"$loc"/usage | bzip2 -1 | od -v -t x1 \
10| $SED -e 's/^[^ ]*//' -e 's/ \(..\)/\\x\1/g' -e 's/^\(.*\)$/"\1"/' || exit 1 10| $SED -e 's/^[^ ]*//' -e 's/ \(..\)/\\x\1/g' -e 's/^\(.*\)$/"\1"/' || exit 1
11echo ';' 11echo ';'
12sz=`"$loc"/usage | wc -c` || exit 1 12sz=`"$loc"/usage | wc -c` || exit 1