[PATCH] Compress common substrings in applet names to save space
Ron Yorston
rmy at pobox.com
Thu Apr 21 21:42:11 UTC 2016
Denys Vlasenko wrote:
>More importantly, people aren't typically type "busybox foo ..." -
>they rely on symlinked names and they just type "foo ...".
>And there is no "rwok" symlink. "rwok -rf /" won't work.
I prefer standalone shell mode, which avoids the need for all the
symlinks. In that case every false positive will be a valid command.
>This patch amounts to inventing a poor man's Lempel-Ziv
>for applet names, and the logical step is just to use gzip
>(since we have its decompressor anyway).
Which is fine for listing the applets or for the installer but not so
good for find_applet_by_name() or tab completion. My approach has the
advantage that it's possible to decompress individual names.
>Care to cook up such a patch?
I'm thinking about it...
Ron
More information about the busybox
mailing list