Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,
I have been using the DotNetZip Library to unzip the files to a destination folder,but the p[process is too slow, can anyone suggest me any faster way to do so. the code I am using is :
C#
using(var zip = Ionic.Zip.ZipFile.Read(Filename)) 
{ 
    zip.ExtractAll(DestinationFolderPath); 
} 


This takes a hell of a lot of time, as I am unzipping around 2200 files Can anyone suggest a faster way to do so. So I tried using Memory mapped files in order to make the process faster so that I can extract the files on the virtual memory, but this didn't work as
C#
zip1.ExtractAll(Destination_path);
requires a destination path and I cant get one for the memory mapped files.

My Question is : Is there any way I can reduce the amount of time taken to extract the files on my hard disk or is there any way I dont have to extract and get all the information?Please let me know if someone knows the answer.

Please note my application is windows based.

Thanks
Posted
Updated 22-Sep-12 12:43pm
v2

1 solution

Hmm. I don't think there is a much more efficient way. Think of the time it takes to unzip a file in Windows Explorer, and that was created with speed in mind, by Microsoft. There may be a batch online unzipping service that you can upload your files to. They may be able to do it faster, depending on their hardware.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900