| Anonymous | Login | Signup for a new account | 2013-05-24 20:07 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
| 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 | |||||||
| Reporter | berenger | |||||||||||
| Assigned To | frisch | |||||||||||
| Priority | normal | Severity | feature | Reproducibility | N/A | |||||||
| Status | resolved | Resolution | suspended | |||||||||
| Platform | OS | OS Version | ||||||||||
| Product Version | 3.12.1 | |||||||||||
| Target Version | Fixed in Version | |||||||||||
| Summary | 0005615: Being able to (un)marshal to/from compressed files | |||||||||||
| Description | Hello, It would be nice to support reading/writing from/to compressed files. The compression level should be an optional user-supplied parameter. Regards, F. | |||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files | ||||||||||||
Notes |
|
|
(0007435) frisch (developer) 2012-05-15 15:59 |
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. |
|
(0007437) xleroy (administrator) 2012-05-15 16:26 |
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. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 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 |