|Anonymous | Login | Signup for a new account||2014-08-20 18:36 CEST|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005615||OCaml||OCaml standard library||public||2012-05-15 05:47||2012-05-15 16:26|
|Target Version||Fixed in Version|
|Summary||0005615: Being able to (un)marshal to/from compressed files|
It would be nice to support reading/writing
from/to compressed files.
The compression level should be an optional
|Tags||No tags attached.|
I don't see that happening in the standard distribution: this would either introduce a dependency to an external compression library or require to integrate one in OCaml's source tree.
Ideally, the marshaler/demarshaler should have an API to allow plugging custom input/output streams. Unfortunately, given the current implementation, it is difficult to call back into OCaml code during marshaling/demarshaling. This could be done at the C level in order to allow plugging an external compression library.
I'm suspending this ticket for now. If someone from the community is willing to work on it, I suggest contacting the developers first to see if there is a chance of having such a patch accepted.
To complement A. Frisch's reply: you can always marshal to/from strings, using Marshal.to_string and Marshal.from_string, then combine this with whatever compression method you'd like. (The Camlzip library, http://forge.ocamlcore.org/projects/camlzip/, [^] could be a good candidate for the compression part.)
The OCaml Batteries library (http://batteries.forge.ocamlcore.org/ [^]) has support for custom input/output streams, but not yet for compressed streams, if I understand correctly. It could still be worth asking on the OCaml Batteries mailing-list, though.
|2012-05-15 05:47||berenger||New Issue|
|2012-05-15 15:59||frisch||Note Added: 0007435|
|2012-05-15 15:59||frisch||Status||new => resolved|
|2012-05-15 15:59||frisch||Resolution||open => suspended|
|2012-05-15 15:59||frisch||Assigned To||=> frisch|
|2012-05-15 16:26||xleroy||Note Added: 0007437|
|Copyright © 2000 - 2011 MantisBT Group|