On 18/05/17 19:30, Garrett Wollman wrote:
<<On Thu, 18 May 2017 09:16:03 -0700, Viktor Sergiienko <singalen@gmail.com> said:
I'm developing for a pretty small-sized embedded system, and 2.9M of binaries is a bit too much for us. The system never uses a date before 2007.
I estimate I can slim it down too 500K by cutting down the old data.
If you already have some sort of compression library on this system, you can just store up a compressed copy of the tzdata files and save far more.
Results with various compression formats:
-rw-r--r-- 1 wollman users 86292 May 18 14:29 foo.cpio.xz -rw-r--r-- 1 wollman users 317317 May 18 14:28 foo.tar.Z -rw-r--r-- 1 wollman users 126190 May 18 14:27 foo.tar.bz2 -rw-r--r-- 1 wollman users 182065 May 18 14:27 foo.tar.gz -rw-r--r-- 1 wollman users 89776 May 18 14:27 foo.tar.xz -rw-r--r-- 1 wollman users 379700 May 18 14:26 foo.zip
ZIP, while the largest, supports random access.
An alternative to ZIP is 7z (or p7zip), which also supports random access and seems to produce sizes similar to your foo.cpio.xz and foo.tar.xz. -- -=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=- -=( Web: http://www.mev.co.uk/ )=-