[
  {
    "Id": "982711",
    "ThreadId": "428397",
    "Html": "\r\n<p>I am attempting to use DotNetZip to zip about 120,000 files with a total size of approx 300 GB (uncompressed). Most of the files are very small (less than 5k). The naive approach (below) works, but takes an extremely long time.&nbsp;</p>\r\n<p>Is attempting to compress everything into one zip file a losing proposition? Do you have&nbsp;any pointers when using DotNetZip with this number/size of files?&nbsp;</p>\r\n<p>Thanks!</p>\r\n<p>Erick</p>\r\n<div style=\"color:black; background-color:white\">\r\n<pre><span style=\"color:blue\">using</span> (<span style=\"color:blue\">var</span> zip = <span style=\"color:blue\">new</span> ZipFile(<span style=\"color:#a31515\">&quot;output.zip&quot;</span>))\n{\n\tzip.UseZip64WhenSaving = Zip64Option.Always;\n\tzip.AddDirectory(@&quot;c:\\input);\n\tzip.Save();\n}            </pre>\r\n</div>\r\n<p><span style=\"text-decoration:line-through\">I assume that there is a temp file being generated somewhere.&nbsp;</span></p>\r\n<p>I have configured the temp folder so that it is on a different spindle, which makes some difference. I am in the process of trying different combinations of file size (via segmented files) and compression ratio. However, it still takes an extremely long\r\n time, so any advice on how to&nbsp;minimize the compression time are welcome.&nbsp;&nbsp;</p>\r\n<p>&nbsp;</p>\r\n",
    "PostedDate": "2013-01-03T08:34:41.84-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]