[
  {
    "Id": "662778",
    "ThreadId": "270250",
    "Html": "\r\n<p>Has anyone done a comparison of CompressionMethod and CompressionLevel values to see how they affect the time to compress, time to decompress, and degree of compression?</p>\r\n<p>Also, other than noted in the documentation for CompressionLelvel, do these values affect compatibility with common archiving tools?</p>\r\n<p>Jacob</p>\r\n",
    "PostedDate": "2011-08-24T10:33:03.57-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "662813",
    "ThreadId": "270250",
    "Html": "<p>I did some tests a long while&nbsp;but never posted the results publicly.&nbsp; I observed a tradeoff between speed and size, but it varies depending on the type of input.&nbsp;&nbsp; In short, there's no fixed answer, You'll have to see how it works for you, with your data.</p>\r\n<p>The compressionlevel applies only to DEFLATE, and does not affect unzipp-ability by other tools.&nbsp; There are some options in the DEFLATE algorithm, and higher compressionlevels use different options.&nbsp; Any compressionLevel will produce a valid DEFLATE stream, which will uncompress in other tools. CompressionMethod, on the other hand, is a different story.&nbsp; Virtually all tools support DEFLATE, not all support Bzip2.&nbsp;&nbsp;&nbsp;YMMV.&nbsp;&nbsp; ps: CompressionLevel does not affect Bzip2 compression.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2011-08-24T11:36:17.537-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "662825",
    "ThreadId": "270250",
    "Html": "<p>THanks again Cheeso,</p>\r\n<p>How does the performance of the BZip2 algoritum compare to the deflate algorithum?</p>\r\n<p>Jacob</p>",
    "PostedDate": "2011-08-24T11:50:03.65-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "662832",
    "ThreadId": "270250",
    "Html": "<p>BZip2 is noticeably slower, but supposedly it is 20% more effective in compression.&nbsp; but as always, YMMV.</p>",
    "PostedDate": "2011-08-24T11:57:00.963-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "663515",
    "ThreadId": "270250",
    "Html": "<p>For posterity, here are my results from compressing a 62,087,168 byte .mde file:</p>\n<p>Level&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Time<br />deflate/1&nbsp;&nbsp; 18,505,484 &nbsp; 17.54211<br />deflate/3&nbsp;&nbsp; 17,769,849 &nbsp; 12.48181<br />deflate/4&nbsp;&nbsp; 17,303,198 &nbsp; 10.90534<br />deflate/5&nbsp;&nbsp; 16,990,365&nbsp;&nbsp; 11.87408<br />deflate/9&nbsp;&nbsp; 16,661,852 &nbsp;&nbsp;38.719989<br />bzip2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;12,576,075 &nbsp; 97.13316</p>\n<p>Time is in seconds and represents the total time to run the compression code in my program. Everything else is identical. Size is in bytes.</p>\n<p>So the bzip2 created a 27% smaller file and took 791% of the time as compared to the fastest level of deflate, which was level 4.</p>\n<p>Jacob</p>",
    "PostedDate": "2011-08-25T14:55:01.4-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "663623",
    "ThreadId": "270250",
    "Html": "<p>Very Interesting - thanks for contributing that.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2011-08-25T21:30:15.063-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]