Date: Fri, 29 Jul 2022 12:06:43 -0400 From: Ed Maste <emaste@freebsd.org> To: d@delphij.net Cc: Eugene Grosbein <eugen@grosbein.net>, freebsd-current <freebsd-current@freebsd.org>, freebsd-hackers@freebsd.org Subject: Re: Proposal: remove /usr/bin/minigzip Message-ID: <CAPyFy2CX77i7f83gwMz9AYzt3Uidu1hHoaPXMLWXp=TGFqtv8w@mail.gmail.com> In-Reply-To: <c257b8eb-6631-e3d1-79ef-8612a1edb91a@delphij.net> References: <0d8e1b38-bcd2-0875-1864-3385c502646d@delphij.net> <b946c9ab-7586-12ca-61cd-e2e7799c3626@grosbein.net> <c257b8eb-6631-e3d1-79ef-8612a1edb91a@delphij.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 29 Jul 2022 at 03:52, Xin Li <delphij@delphij.net> wrote: > But for applications that really want to have smaller footprint, bzip2 > might be a better alternative -- the binary is bigger than minigzip, but > library was smaller than zlib so the total size is actually a little bit > smaller: ... For applications where tens of kilobytes is a real concern, something like Rob Landley's "toybox" is probably a better bet. I configured it to include only gzip and get: $ ls -l toybox -r-xr-xr-x 1 emaste emaste 36880 Jul 29 11:59 toybox $ ./toybox gzip $ $ ldd ./toybox ./toybox: libc.so.7 => /lib/libc.so.7 (0x822a42000) so it's about 25K larger than minigzip, but doesn't depend on libz and could result in a rather smaller image. Toybox is at https://landley.net/toybox/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2CX77i7f83gwMz9AYzt3Uidu1hHoaPXMLWXp=TGFqtv8w>