{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "not a bug",
    "ClosedDate": "2011-03-20T06:37:36.36-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "Using Ionic.Zip 1.9.1.5 and ZipFile.ParallelDeflateThreshold =-1, the size of the archive goes from aprox 12 Mb to aprox 150 Mb (I'm using as input a folder containing 60 files, summing up to 260Mb).\nCode:\nzipFile.Comment = zipFileComment;\nzipFile.Password = zipPassword;\nzipFile.AddDirectoryWillTraverseReparsePoints = true;\nzipFile.CaseSensitiveRetrieval = true;\nzipFile.CompressionLevel = CompressionLevel.Level6;\nzipFile.EmitTimesInWindowsFormatWhenSaving = true;\nzipFile.Encryption = EncryptionAlgorithm.WinZipAes256;\nzipFile.FlattenFoldersOnExtract = true;\nzipFile.FullScan = true;\nzipFile.Strategy = CompressionStrategy.HuffmanOnly;\nzipFile.TempFileFolder = Path.GetTempPath();\nzipFile.ZipErrorAction = ZipErrorAction.Throw;\nzipFile.ParallelDeflateThreshold = -1; //disable multithreaded zip/unzip\nzipFile.AddDirectory(folder);\nzipFile.Save();\nZip size is 150 Mb. If I comment out ZipFile.ParallelDeflateThreshold =-1, zip size is 12 Mb.\n \nAny idea? Thank you.",
    "LastUpdatedDate": "2013-05-16T05:31:38.22-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2011-03-09T06:39:02.533-08:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "ZipFile.ParallelDeflateThreshold =-1 increases the archive file (by aprox 10 times)",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 13160
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "Found the solution, but not the reason :)\r\n\r\nJust replaced zipFile.Strategy = CompressionStrategy.HuffmanOnly; with zipFile.Strategy = CompressionStrategy.Default\r\nNow zip file size is 5mb (even better).\r\nSo ParallelDeflateThreshold = -1 + Strategy = CompressionStrategy.HuffmanOnly seems to make the compression less effective.\r\n\r\n[Bottom line: use defaults wherever possible, don't try to smarter that needed :)]",
      "PostedDate": "2011-03-09T07:03:26.623-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-03-20T06:37:36.36-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:43:17.41-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:31:38.22-07:00",
      "Id": -2147483648
    }
  ]
}