|
From: | Antonio Diaz Diaz |
Subject: | Re: [Lzip-bug] Equivalent to bzip2's switch "-s" |
Date: | Tue, 08 Oct 2013 14:08:37 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905 |
Juan Francisco Cantero Hurtado wrote:
Apparently xz has problems on OpenBSD VAX due to the high memory consumption. I've saw that bzip2 has the switch "-s" to reduce the memory use.lunzip is really good in this case because the maximum amount of memory used is 33MB but this is not enough for VAX. Is it possible to add something like a "lowmem mode" to lunzip?. The decompression time isn't a problem here.
The easy way to fix this is to compress files with a smaller dictionary size. But I guess you mean to decompress files produced elsewhere.
When decompressing to a regular file it would be possible to use the file as dictionary. It would be probably very slow, but it could decompress any file using 32KiB of RAM or so.
When decompressing to stdout, a temporary file would be needed to hold the dictionary.
But this would be a large change not guaranted to be generally useful. So probably would be better to write a new "lunzip-lowmem" tool and see how it works.
Best regards, Antonio.
[Prev in Thread] | Current Thread | [Next in Thread] |