jack23912 / grub4dos-chenall

Automatically exported from code.google.com/p/grub4dos-chenall
0 stars 0 forks source link

LZMA decompression #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have adapted LZMA decompression code from LZMA SDK ( 
http://www.7-zip.org/sdk.html ) for use with GRUB4DOS. 
Patch file is attached. 

I have tested it with cat command, it seems to work. 
However, map command cannot be used .lzma file created from LZMA Utils or XZ 
Utils ( http://tukaani.org/ ) directly.  It needs "Uncompressed Size" field in 
.lzma file header (8-byte integer starting at byte offset 5).  You may use hex 
editor to write this value in .lzma file header before using it with map 
command. 

Original issue reported on code.google.com by karyo...@gmail.com on 28 Nov 2010 at 3:39

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you
I have patched it,the new version with this patch is uploaded.

and i upload a lzma.exe.

lzma.exe can easy encode file to lzma.

Original comment by chenall.cn on 30 Nov 2010 at 6:48

GoogleCodeExporter commented 8 years ago
Thanks.
How did I forgot Igor Pavlov 's lzma.exe . 
The latest version (9.20) is available at http://www.7-zip.org/sdk.html . 

Original comment by karyo...@gmail.com on 30 Nov 2010 at 12:14

GoogleCodeExporter commented 8 years ago

Original comment by chenall.cn on 1 Dec 2010 at 9:56

GoogleCodeExporter commented 8 years ago
chenall, you may undo the change in line 1490-1495 of my previous patch to 
re-enable progress indicator. 

Original comment by karyo...@gmail.com on 4 Dec 2010 at 7:54

GoogleCodeExporter commented 8 years ago
thank you.
I change it on another way.

I think the lzma decompression need to be optimized.current is slow.

Original comment by chenall.cn on 11 Dec 2010 at 9:47

GoogleCodeExporter commented 8 years ago
below command shows the time for load test.img.
test.lzma is 18.8mb,test.gz is 19.2.
checktime && map --mem /test.lzma (hd1) && checktime
checktime && map --mem /test.gz (hd1) && checktime

8 seconds for lzma. and 2 seconds for gz.

Original comment by chenall.cn on 11 Dec 2010 at 9:52

GoogleCodeExporter commented 8 years ago

Original comment by roy...@gmail.com on 9 May 2011 at 10:39