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 OAA25860; Fri, 27 Dec 2002 14:12:17 +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 OAA25573 for ; Fri, 27 Dec 2002 14:12:16 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gBRDBjH08427; Fri, 27 Dec 2002 14:11:45 +0100 (MET) Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA25932; Fri, 27 Dec 2002 14:11:45 +0100 (MET) From: Pierre Weis Message-Id: <200212271311.OAA25932@pauillac.inria.fr> Subject: Re: [Caml-list] Cross-platform DBM equivalent? In-Reply-To: <20021226182323.GA2399@lordsoth.takhisis.org> from Stefano Zacchiroli at "Dec 26, 102 07:23:23 pm" To: zack@cs.unibo.it (Stefano Zacchiroli) Date: Fri, 27 Dec 2002 14:11:45 +0100 (MET) Cc: caml-list@inria.fr X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > 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. All the best for the next year, Pierre Weis INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/ ------------------- 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