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
Note: fs is file stream