Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
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 :
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
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 22-Sep-12 12:13pm
GB_1114256
Edited 22-Sep-12 12:43pm
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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



Advertise | Privacy | Mobile
Web02 | 2.8.141022.2 | Last Updated 22 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100