The REALLY bad thing about Python lists ..

ben at co.and.co ben at co.and.co
Fri May 19 18:40:49 CEST 2000


Gordon McMillan <gmcm at hypernet.com> wrote:
 
> You might as well ask why the Windows way does it backwards: 
> zipping a tar will almost always yield better compression than 
> tarring a bunch of zips (more redundancy to work with). (Yes, it's 
> easier to extract one file from the latter, but that's not the common 
> usage.)

Indeed:

$ ls -lh tartest/
total 40k
-rw-rw-r--    1 ben      ben          1.0k May 19 18:35 test.1
-rw-rw-r--    1 ben      ben          1.0k May 19 18:36 test.10
-rw-rw-r--    1 ben      ben          1.0k May 19 18:36 test.2
-rw-rw-r--    1 ben      ben          1.0k May 19 18:36 test.3
-rw-rw-r--    1 ben      ben          1.0k May 19 18:36 test.4
-rw-rw-r--    1 ben      ben          1.0k May 19 18:36 test.5
-rw-rw-r--    1 ben      ben          1.0k May 19 18:36 test.6
-rw-rw-r--    1 ben      ben          1.0k May 19 18:36 test.7
-rw-rw-r--    1 ben      ben          1.0k May 19 18:36 test.8
-rw-rw-r--    1 ben      ben          1.0k May 19 18:36 test.9

$ tar zcf tar.gz tartest/
$ zip -r tar tartest/
$ ls -lh tar.*
-rw-rw-r--    1 ben      ben           272 May 19 18:36 tar.gz
-rw-rw-r--    1 ben      ben          1.6k May 19 18:42 tar.zip
 
Greetings,
-- 
ben . de . rydt at pandora . be ------------------ your comments
http://users.pandora.be/bdr/ ------- inl. IPv6, Linux en Pandora




More information about the Python-list mailing list