This project is read-only.

Performance Problem when zip size increases

Oct 8, 2012 at 2:03 PM


Our application zips one file by one file (usually of 1 KB to 5 KB) to a .zip file using DotNetZip library. When the file count increases the performance of adding the file to the zip is becoming very slow. We need to compress some 5000 files in a single zip file. It is a multi-threaded application and each thread will be creating different zip files of 5000 files each.

Please suggest any tweaks to improve the performance. 

The code used is

If ZipFile.ContainsEntry(fileToZip) Then

 ZipFile.UpdateEntry(fileToZip, fs)


ZipFile.AddEntry(fileToZip, fs)

End If



Note: fs is file stream

Oct 31, 2012 at 5:10 PM

Its fast upto a size of around 20Mb, after that even I am facing the same problem. Our Zip files tend to go upto 500Mb.