{"action":"created","issue":{"url":"https://api.github.com/repos/joblib/joblib/issues/273","labels_url":"https://api.github.com/repos/joblib/joblib/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/joblib/joblib/issues/273/comments","events_url":"https://api.github.com/repos/joblib/joblib/issues/273/events","html_url":"https://github.com/joblib/joblib/issues/273","id":117387872,"number":273,"title":"Try lzma for compression on Python >= 3.3 in our persistence","user":{"login":"GaelVaroquaux","id":208217,"avatar_url":"https://avatars.githubusercontent.com/u/208217?v=3","gravatar_id":"","url":"https://api.github.com/users/GaelVaroquaux","html_url":"https://github.com/GaelVaroquaux","followers_url":"https://api.github.com/users/GaelVaroquaux/followers","following_url":"https://api.github.com/users/GaelVaroquaux/following{/other_user}","gists_url":"https://api.github.com/users/GaelVaroquaux/gists{/gist_id}","starred_url":"https://api.github.com/users/GaelVaroquaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaelVaroquaux/subscriptions","organizations_url":"https://api.github.com/users/GaelVaroquaux/orgs","repos_url":"https://api.github.com/users/GaelVaroquaux/repos","events_url":"https://api.github.com/users/GaelVaroquaux/events{/privacy}","received_events_url":"https://api.github.com/users/GaelVaroquaux/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joblib/joblib/labels/Enhancement","name":"Enhancement","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-17T16:07:06Z","updated_at":"2015-11-17T22:42:00Z","closed_at":null,"body":"Once #260 is merge, we should consider using (maybe optionally) lzma for compression under Python >= 3.3.\r\n\r\nIndeed, lzma is shipped in the standard library in Python >= 3.3:\r\nhttps://docs.python.org/3/library/lzma.html\r\n\r\nI think that it is much faster than gzip.\r\n\r\nIt means that object persisted in Python 3 won't load in Python 2, but that's fine.\r\n"},"comment":{"url":"https://api.github.com/repos/joblib/joblib/issues/comments/157533505","html_url":"https://github.com/joblib/joblib/issues/273#issuecomment-157533505","issue_url":"https://api.github.com/repos/joblib/joblib/issues/273","id":157533505,"user":{"login":"GaelVaroquaux","id":208217,"avatar_url":"https://avatars.githubusercontent.com/u/208217?v=3","gravatar_id":"","url":"https://api.github.com/users/GaelVaroquaux","html_url":"https://github.com/GaelVaroquaux","followers_url":"https://api.github.com/users/GaelVaroquaux/followers","following_url":"https://api.github.com/users/GaelVaroquaux/following{/other_user}","gists_url":"https://api.github.com/users/GaelVaroquaux/gists{/gist_id}","starred_url":"https://api.github.com/users/GaelVaroquaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaelVaroquaux/subscriptions","organizations_url":"https://api.github.com/users/GaelVaroquaux/orgs","repos_url":"https://api.github.com/users/GaelVaroquaux/repos","events_url":"https://api.github.com/users/GaelVaroquaux/events{/privacy}","received_events_url":"https://api.github.com/users/GaelVaroquaux/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T22:42:00Z","updated_at":"2015-11-17T22:42:00Z","body":"> joblib.dump(obj, '/tmp/pickle.gz', compressed=True)  # creates a gz\n> joblib.dump(obj, '/tmp/pickle.lzma', compressed=True, use_lzma=True)  # creates a lzma\n\n> Maybe a heuristic based on the filename extension would make the signature\n> slightly nicer?\n\n> Other better suggestions?\n\ncompressed=True => lmza if available\ncompressed=[number] => corresponding lzma compression if available, if\nnot corresponding gzip compression\ncompressed='lmza[number]' or compressed='gz[number]' => explicit choice\n\nI would like this scheme because it pushes for good default, and is an\nextension of what we currently have.\n"}}