[BusyBox] [PATCH] lzmacat for busybox
Christian Leber
christian at leber.de
Wed Jun 15 09:02:53 UTC 2005
On Wed, Jun 15, 2005 at 09:16:09AM +0800, Ming-Ching Tiew wrote:
> how many of us are using it for big files ? And how many
> of us are using it for small files ? Just because of one person
> need to use it for file bigger than 8MB, everybody who is
> using it for decompressing will need to have minimally
> 8MB of memory.
No.
When you are using small files on a small memory system you have to use
a small dictionary as well, that's it.
I hope lzma will get at least a simple automatic adaption,
but it doesn't has this as of now.
Soem numbers for now:
-rwxr-xr-x 1 ijuz ijuz 667340 Jun 15 10:55 bash
-rw-r--r-- 1 ijuz ijuz 264867 Jun 15 10:56 bash.lzma_8MB
-rw-r--r-- 1 ijuz ijuz 264867 Jun 15 10:56 bash.lzma_2MB
-rw-r--r-- 1 ijuz ijuz 264867 Jun 15 10:56 bash.lzma_1MB
-rw-r--r-- 1 ijuz ijuz 265007 Jun 15 10:56 bash.lzma_512kb
-rw-r--r-- 1 ijuz ijuz 265813 Jun 15 10:56 bash.lzma_256kb
If you are concerned so much about memory size you can as well reduce
the input and output buffer from 64 kb to something smaller.
> What if the file has been compressed with a
> bigger dictionary size ?
lzmacat will allocate more memory.
Christian Leber
--
http://www.nosoftwarepatents.com
More information about the busybox
mailing list