From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA19764; Sun, 12 Jan 2003 11:13:07 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA19739 for ; Sun, 12 Jan 2003 11:13:06 +0100 (MET) Received: from mel-rto4.wanadoo.fr (smtp-out-4.wanadoo.fr [193.252.19.23]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h0CAD6r07628; Sun, 12 Jan 2003 11:13:06 +0100 (MET) Received: from mel-rta9.wanadoo.fr (193.252.19.69) by mel-rto4.wanadoo.fr (6.7.015) id 3E0C33FD008A5F01; Sun, 12 Jan 2003 11:13:06 +0100 Received: from iliana (81.49.168.167) by mel-rta9.wanadoo.fr (6.7.015) id 3E075B46008E360D; Sun, 12 Jan 2003 11:13:06 +0100 Received: from luther by iliana with local (Exim 3.36 #1 (Debian)) id 18Xf72-0000PG-00; Sun, 12 Jan 2003 11:13:04 +0100 Date: Sun, 12 Jan 2003 11:13:03 +0100 To: Pierre Weis Cc: Stefano Zacchiroli , caml-list@inria.fr Subject: Re: [Caml-list] Cross-platform DBM equivalent? Message-ID: <20030112101303.GA1552@iliana> References: <20021226182323.GA2399@lordsoth.takhisis.org> <200212271311.OAA25932@pauillac.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200212271311.OAA25932@pauillac.inria.fr> User-Agent: Mutt/1.4i From: Sven Luther Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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