This project is read-only.

How to decompress solid archives in memory fast?

Mar 14, 2011 at 2:09 PM

 

Hello! 
I wrote a code piece like below to extract an a solid archive in memory.
(Of course, it's just for exam.)


var
ext = new SevenZipExtractor(@"D:\boost_1_46_1.7z"); for (int i = 0; i < ext.FilesCount; ++i) { Console.WriteLine(ext.ArchiveFileNames[i]); using (var ms = new MemoryStream()) { ext.ExtractFile(i, ms); } }


But it's very slow. It takes a few seconds per file.
How can I decompress solid archives in memory fast?
Apr 4, 2011 at 10:09 AM

 

ExtractFile method totally not work in my system... why?
Apr 29, 2011 at 3:25 AM

The solid archive can only speed up if each extract item is cached, but SevenZipSharp can't do that yet.

But theoretically the extractAll() should work fast (just that I haven't tested myself).

This is a really needed function, I hope it gets implemented soon.