[tz] Looking for a way to cut down binary zoneinfo size. Does anyone have the way to?

Garrett Wollman wollman at csail.mit.edu
Thu May 18 18:30:46 UTC 2017

<<On Thu, 18 May 2017 09:16:03 -0700, Viktor Sergiienko <singalen at 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.


More information about the tz mailing list