[
  {
    "Id": "923401",
    "ThreadId": "398468",
    "Html": "\r\n<p>Hi,</p>\r\n<p>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\r\n zip file. It is a multi-threaded application and each thread will be creating different zip files of 5000 files each.</p>\r\n<p>Please suggest any tweaks to improve the performance.&nbsp;</p>\r\n<p>The code used is</p>\r\n<p>If ZipFile.ContainsEntry(fileToZip) Then<span> </span></p>\r\n<p><span>&nbsp;</span>ZipFile.UpdateEntry(fileToZip, fs)</p>\r\n<p>Else<span> </span></p>\r\n<p>ZipFile.AddEntry(fileToZip, fs)</p>\r\n<p>End If</p>\r\n<p>Archive.Save()</p>\r\n<p>&nbsp;</p>\r\n<p>Note: fs is file stream</p>\r\n",
    "PostedDate": "2012-10-08T06:03:05.867-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "934848",
    "ThreadId": "398468",
    "Html": "<p>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.&nbsp;</p>",
    "PostedDate": "2012-10-31T09:10:47.49-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]