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
[Caml-list] Cross-platform DBM equivalent?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Pierre Weis <pierre.weis@i...>
Subject: Re: [Caml-list] Cross-platform DBM equivalent?
> On Thu, Dec 26, 2002 at 05:50:26PM +0100, Pierre Weis wrote:
> > As far as I know the best (and simpler) way to do this for reasonable
> > number of URLs bindings (say thousands but not millions) is to create
> > a Hashtlbl.t or Map.t and dump it to file using output_value (then
> > read it back with input_value). In any case, I would start with this
> Whath about memory consumption?
> I know nothing about dbm internals but from my experience dbm doesn't
> keep all the data in memory while Hashtbl and Map do.
> Am I wrong?
> Cheers.
> -- 
> Stefano Zacchiroli  -  Undergraduate Student of CS @ Uni. Bologna, Italy

You're right. If memory foot prints are of concern, you should try to
define your own data structures using big arrays and memory
mapping. However, this is not yet available in the current
implementation; we will be glad to have your contribution on this

All the best for the next year,

Pierre Weis

INRIA, Projet Cristal,,

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: