K
Kent Paul Dolan
Roedy said:zipped is not suitable for handhelds. It is not suitable for routine
transport. If it were, HTML would be zipped too. It is too time
consuming and too cpu intensive.
Wrong, wrong, and wrong.
1) Unzip is a little bit ugly for memory footprint, around 100Kbytes,
but gzip/gunzip is half that:
-rwxr-xr-x 1 root root 53676 Jul 24 2004 /bin/gzip
Gzipped files are commonly use for transport, especially
for files that will be downloaded multiple times, but nearly
the same logic applies to files that as a group will be the
transported data across some repeatedly used interface,
especially when the sending end has lots of CPU cycles
available.
2) The unarchiving process is _almost_ universally much
faster than the archiving process.
root@1[/]# time gzip root.tar
real 0m9.207s
user 0m8.729s
sys 0m0.305s
root@1[/]# time gunzip root.tar.gz
real 0m1.884s
user 0m1.512s
sys 0m0.320s
where I kitchen-sinked 72 megabytes of glop accumulated
in the root directory for test data.
This means that for the most common case, files
going _to_ a handheld device, gzipping is a very
effective and low overhead choice.
3) I've downloaded many whole HTML web sites with
dozens to hundreds of pages; universally, the site
maintainers use some compression technology
and the files are transported as a compressed
archive.
xanthian.