{
  "id": 6230,
  "title": "Easily compress your submission file:  .zip vs .gz vs .7z",
  "url": "/competitions/yandex-personalized-web-search-challenge/discussion/6230",
  "author_name": "",
  "post_date": "2013-11-05T01:54:28.727Z",
  "votes": 4,
  "comment_count": 1,
  "views": 1623,
  "content": "<p>My submission file is 150.5 MB.&nbsp;</p>\n<p>Since uploading the file for a submission is much quicker if compressed, I did a check to see which saved the most space:</p>\n<p>.gz file =&nbsp; 46.5 mb</p>\n<p>.zip file =&nbsp; 36.1 mb</p>\n<p>.7z file = 27.3 mb</p>\n<p>If you are running python, it is only 2 lines of code to create the .7z file:</p>\n<p>&nbsp;</p>\n<p>import subprocess</p>\n<p>subprocess.call(['7z', 'u',outFileName+'.7z', outFileName])</p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>",
  "messages": [
    {
      "id": "33227",
      "postDate": "11/05/2013 01:54:28",
      "content": "<p>My submission file is 150.5 MB.&nbsp;</p>\n<p>Since uploading the file for a submission is much quicker if compressed, I did a check to see which saved the most space:</p>\n<p>.gz file =&nbsp; 46.5 mb</p>\n<p>.zip file =&nbsp; 36.1 mb</p>\n<p>.7z file = 27.3 mb</p>\n<p>If you are running python, it is only 2 lines of code to create the .7z file:</p>\n<p>&nbsp;</p>\n<p>import subprocess</p>\n<p>subprocess.call(['7z', 'u',outFileName+'.7z', outFileName])</p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "33291",
      "postDate": "11/06/2013 00:31:33",
      "content": "<p>You can also directly open a gzip file in python and write to it just like any other file, using the gzip module.&nbsp;</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 33291,
      "author_name": "ma2rten",
      "author_url": "",
      "post_date": "11/06/2013 00:31:33",
      "content": "<p>You can also directly open a gzip file in python and write to it just like any other file, using the gzip module.&nbsp;</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "33227": "",
    "33291": ""
  },
  "source": "meta"
}