DotnetZip very very slow on windows Server 2008

Jul 8, 2010 at 9:11 PM
Edited Jul 8, 2010 at 9:12 PM

Help Please.

I am using Ionic.Zip.DLL  ( 1.9 Ver )for zipping files on WINDOWS SERVER 2008R2 ..

It takes 10 times longer than PC/Laptop

I am just referencing  the above DLL in my code as shown below.

Please advice me If I have to place this DLL in GAC ?  OR do I have to insatll any ZIP program on server

Thanks

Example

To zip a 800MB file it takes almost 16 Min.

This simple code  takes 16 Mins to zip files are

 

<font size="2">

 </font>string zipFileToCreate = @"C:\Gartner\PivotTable\ZipUtility\PCMarketshare_ZIP_PC.zip";

  string zipSourcefile1 = @"C:\Gartner\PivotTable\ZipUtility\PC Marketshare EMEA_2010Q1.XLS"; //200MB<font size="2"> <font size="2"> // 250MB</font><font size="2"> <font size="2"> /100MB</font><font size="2"> //250 MB using (ZipFile zip = new ZipFile())

 </font>string zipSourcefile2 = @"C:\Gartner\PivotTable\ZipUtility\PC Marketshare Channel EMEA_2010Q1.XLS";

 </font>string zipSourcefile3 = @"C:\Gartner\PivotTable\ZipUtility\PC Marketshare Major Market EMEA_2010Q1.XLS";

 </font>string zipSourcefile4 = @"C:\Gartner\PivotTable\ZipUtility\PC Marketshare EMEA_2010Q1.CSV";

 

 

{

 

<font size="2">

 

</font>

 

zip.CompressionLevel = Ionic.Zlib.

<font size="2">

 

</font>CompressionLevel.BestCompression;

 

zip.AddFile(zipSourcefile1);

zip.AddFile(zipSourcefile2);

zip.AddFile(zipSourcefile3);

zip.AddFile(zipSourcefile4);

 

zip.Save(zipFileToCreate);

 

}