Data structure to big to be marshalled
Johan Mazel <[email protected]>
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Message-ID | <CAKS5mhQqfjzvL7Jj+S-3fKbwaoGi2vr02zkZZY0d1dhcPWd+8A@mail.gmail.com> |
Hi
I am trying to marshal and write a data structure with Marshal.output_value.
Unfortunately, I get this error: "Fatal error: exception
Failure("output_value: object too big")".
This seems to mean that my OCaml data structure is too big to be marshaled
in the first place because it exceeds the max size to be stored in header:
http://caml.inria.fr/svn/ocaml/branches/record-disambiguation/byterun/extern.c
.
Is there any canonical way to bypass this size limitation ?
Or do I just have have to "manually" split my data structure, marshal the
splits, unmarshal the splits and merge them ?
Johan