From: Eric Cooper <ecc@cmu.edu>
To: caml-list@inria.fr
Subject: Re: [Caml-list] bindings for xz compression and decompression ?
Date: Thu, 8 Sep 2016 15:45:45 -0400 [thread overview]
Message-ID: <20160908194545.kzr4bxhmvjwb3iv7@cooper-siegel.org> (raw)
In-Reply-To: <11961473358836@web2j.yandex.ru>
In approx, I just use a Sys.command call to decompress to a temporary
file and then open that. It has these benefits:
* for gzip at least, it's faster than camlzip
* easily detects corrupted files (reading the output stream of a
decompressor doesn't do that until it's too late)
* easy to change compression schemes or support multiple ones based
on file extension, say
--
Eric Cooper e c c @ c m u . e d u
next prev parent reply other threads:[~2016-09-08 19:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-08 7:05 Ralf Treinen
2016-09-08 18:20 ` Bergman Andrey
2016-09-08 19:45 ` Eric Cooper [this message]
2016-09-08 23:25 ` Ben Millwood
2016-09-13 20:15 ` Ralf Treinen
2016-09-21 15:46 ` Adrien Nader
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160908194545.kzr4bxhmvjwb3iv7@cooper-siegel.org \
--to=ecc@cmu.edu \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox