[PATCH] busybox: store applet usage messages uncompressed

Rui Salvaterra rsalvaterra at gmail.com
Thu Jul 9 13:09:39 EDT 2020


Hi, Petr!

On Thu, 9 Jul 2020 at 16:46, Petr Štetiar <ynezz at true.cz> wrote:
>
> Numbers please! :)

Here you go (compressed vs uncompressed):

busybox (the executable): 364596 vs 384804 bytes.

OpenWrt target images (the kernel image is unchanged, obviously):

omnia-medkit-openwrt-mvebu-cortexa9-cznic_turris-omnia-initramfs.tar.gz:
9163597 vs 9162531 bytes (1066 bytes difference).
openwrt-mvebu-cortexa9-cznic_turris-omnia-initramfs-kernel.bin:
9161688 vs 9160600 bytes (1088 bytes difference).
openwrt-mvebu-cortexa9-cznic_turris-omnia-sysupgrade.img.gz: 9729550
vs 9729230 bytes (320 bytes difference).

All in all, we save just a little bit over 1 kiB. As an added bonus,
we also don't have to decompress the messages twice, (first from
squashfs, then from the bzip2 message storage).

Thanks,
Rui



More information about the openwrt-devel mailing list