[
  {
    "Id": "441672",
    "ThreadId": "212312",
    "Html": "<p>Hi,</p>\r\n<p>&nbsp;&nbsp; I am testing version 1.9.1.5 after using 1.8.3.15.</p>\r\n<p>&nbsp;&nbsp; I run the same code with both:</p>\r\n<p><span style=\"font-size:10pt\">zipFile = <span style=\"color:blue\">new</span> <span style=\"color:#2b91af\">ZipFile</span>(<span style=\"color:#2b91af\">Encoding</span>.GetEncoding(<span style=\"color:#a31515\">&quot;ibm437&quot;</span>)))</span><span style=\"font-size:10pt\">&nbsp;</span></p>\r\n<p><span style=\"font-size:10pt\">zipFile.AddDirectory(folderName);</span><span style=\"font-size:10pt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></p>\r\n<p><span style=\"font-size:10pt\">zipFile.Save(zipNameName);</span>&nbsp;</p>\r\n<p>&nbsp;&nbsp; The directory uncompressed size is about 3.6 GB.&nbsp;</p>\r\n<p>&nbsp;&nbsp; With version 1.8.3.15 I get a zip file with size 297.206 MB</p>\r\n<p>&nbsp;&nbsp; With version 1.9.1.5 I get a zip file with size 325.571 MB&nbsp;</p>\r\n<p>&nbsp;&nbsp; When I view the zip file with WinZip I see that for some files the ratio was better in 1.8.&nbsp;</p>\r\n<p>&nbsp;&nbsp;&nbsp; Can you explain ? (BTW 1.9 was much faster but did in come with prise?)&nbsp;&nbsp;</p>\r\n<p>Thanks,</p>\r\n<p>&nbsp;&nbsp; Doron.</p>",
    "PostedDate": "2010-05-11T12:41:03.413-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "441687",
    "ThreadId": "212312",
    "Html": "<p>Yes, v1.9 offers a trade of compression speed for compressed size.&nbsp; If you want the v1.8 behavior, set the <a href=\"http://cheeso.members.winisp.net/DotNetZipHelp/html/dd2291bf-1c5a-8f1b-cfa6-34239e73ad13.htm\">ParallelDeflateThreshold</a> on the ZipFile instance., to -1.&nbsp;</p>\r\n<p>I debated (with myself!) whether to make by default, bias toward SPEED or bias toward SIZE, but I could not find a good reason to make either choice. In the end I decided to turn on parallel deflate because the speed was so enticing.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-05-11T13:18:09.803-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "441901",
    "ThreadId": "212312",
    "Html": "<p><span style=\"font-size:11pt\">Thanks Cheeso for the quick response!</span><span style=\"font-size:11pt\">&nbsp;</span></p>\r\n<p><span style=\"font-size:11pt\">From my example we gained about 40% improvements in performance for about 10% degradation in compression.</span><span style=\"font-size:11pt\">&nbsp;</span></p>\r\n<p><span style=\"font-size:11pt\">My question is, must it be all or nothing or is there something in between like:</span><span style=\"font-size:11pt\">&nbsp;</span></p>\r\n<p><span style=\"font-size:11pt\">30% performance improvement for 5% compression degradation?</span><span style=\"font-size:11pt\">&nbsp;</span></p>\r\n<p><span style=\"font-size:11pt\">BTW changing the CompressionLevel in the ZipFile had no effect.</span><span style=\"font-size:11pt\">&nbsp;</span></p>\r\n<p><span style=\"font-size:11pt\">Regards,</span></p>\r\n<p><span style=\"font-size:11pt\">Doron.</span></p>",
    "PostedDate": "2010-05-12T01:49:01.493-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "442097",
    "ThreadId": "212312",
    "Html": "<p>With the property I mentioned you can tweak things. <br>But of course the results will depend on the files you are compressing.&nbsp; <br>The only way to know, is to test it.&nbsp; <br>See the documentation for more information.</p>",
    "PostedDate": "2010-05-12T08:42:36.65-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]