Version française
Home     About     Download     Resources     Contact us    
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: Sven Luther <luther@d...>
Subject: Re: [Caml-list] Cross-platform DBM equivalent?
On Fri, Dec 27, 2002 at 02:11:45PM +0100, Pierre Weis wrote:
> > 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
> topic.

BTW, Does ocaml optimize two successive writes to the same bigarray
field, or is it possible to use a big array on volatile memory, like for
example the MMIO command register of some piece of hardware ?

Friendly,

Sven Luther
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners