summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley2006-05-30 19:19:45 +0000
committerRob Landley2006-05-30 19:19:45 +0000
commit3252b625b751a2de794ae4f8e48b80b4ff09dfdc (patch)
treebbd45b1e8172b5dd7cc51318a4e9e7cedf5997b5 /scripts
parentb2d42fa6d1be89f09f9abd823e795879cee59989 (diff)
downloadbusybox-3252b625b751a2de794ae4f8e48b80b4ff09dfdc.zip
busybox-3252b625b751a2de794ae4f8e48b80b4ff09dfdc.tar.gz
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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/usage_compressed2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/usage_compressed b/scripts/usage_compressed
index 59e93e6..8e2228a 100644
--- a/scripts/usage_compressed
+++ b/scripts/usage_compressed
@@ -6,7 +6,7 @@ test "$loc" || loc=.
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