On Thu, Nov 07, 2013 at 12:24:17PM +0000, Stuart Henderson wrote: > > > >My initial intention adding support for lzip was to have an alternative > > > >to xz 100% compatible with VAX for the patches and tarballs created and > > > >hosted directly by the OpenBSD porters in their servers. That is the > > > >reason for the adittional change to PATCH_CASES. The support for > > > >projects releasing tarballs compressed with lzip is just a side effect. > > I think this is pointless for patches, I host a few of these - the > largest (due to a mistake) is around 500kB, typically they are around 10kB. > > Tarballs maybe, though I just tried this with a distfile tar (uncompressed > 28M) using default options of the various compression tools; decompressing > with lzip took 1.5s to decompress; xz took 1s with very similar memory > use (couple of K less than lzip; max rss around 9824).
I tried with -9 and the firefox tarball. 14 seconds with xz, 13 with pdlzip and 18 with the other lzip decompressors. > > This is all *significantly* slower than gzip's decompression, which was > around 0.3 seconds on my test file (and max rss 1156). I told to the upstream about the problem with VAX and our old platforms. He added an option to limit the memory use to the next version of lunzip and now you can decompress any file with just 50KB of RAM use. Obviously, this option will slow down the decompression. > > Interestingly pdlzip was faster at decompressing than lzip (though not as > fast as xz).. IIRC, pdlzip uses the same code than xz. > > > I use "-9" for everything compressed with xz, lzip or other modern > > compression formats. This isn't a stupid setting! :) > > xz's manual specifically advises against this (and it's useless for > files smaller than 32MB anyway). The default of -6 is pretty good, > you can use -6e to save a small amount of space but it's much slower. Upstream's advices? Who cares? :D > > man xz | less +/The.diff > > (I would have pasted it, but I wanted to preserve the formatting with > the bold text :) > -- Juan Francisco Cantero Hurtado http://juanfra.info
