Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Long-term storage of values
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-02-28 (20:05)
From: Mathias Kende <mathias@k...>
Subject: Re: [Caml-list] Long-term storage of values
Le jeudi 28 février 2008 à 18:41 +0000, Dario Teixeira a écrit :
> This strikes me as problem bound to be common.  How do you guys typically
> solve this sort of situation?  

I use a "magic" value at the beginning of the marshalled DB to
distinguish between different versions of the type and I write the code
to convert from one type to the next version. The result is as fast as
simple marshalling except in the few case were all the data must be
converted, but I need to write manually the code to convert the type to
a new version (probably not worse than what is needed the convert it to