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 JAA11453; Sat, 24 Apr 2004 09:31:03 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA11928 for ; Sat, 24 Apr 2004 09:31:02 +0200 (MET DST) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i3O7V1jq023522 for ; Sat, 24 Apr 2004 09:31:01 +0200 X-Sasl-enc: YVZdRnP/W8XOu2S7AEgGYQ 1082791859 Received: from [192.168.1.100] (unknown [218.81.120.34]) by mail.messagingengine.com (Postfix) with ESMTP id 8E08CA8EB58; Sat, 24 Apr 2004 03:30:57 -0400 (EDT) Date: Sat, 24 Apr 2004 15:30:53 +0800 (HKT) From: Martin Jambon X-X-Sender: martin@localhost To: Oliver Bandel Cc: caml-list@inria.fr Subject: Re: [oliver: Re: [Caml-list] Should be INSIDE STANDARD-LIB: Hashtbl.keys] In-Reply-To: <20040423201039.GH271@first.in-berlin.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; oliver:01 caml-list:01 hashtbl:01 oliver:01 bandel:01 hash:01 hashtbl:01 implemented:01 bindings:01 caml:01 jambon:02 jambon:02 binding:03 wrote:03 suppose:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, 23 Apr 2004, Oliver Bandel wrote: > When you want to report each key only once, you need a temporarily > hash to sort out multiple stuff. This, because the fold-function > reports EACH binding (and it good that it does it), and therefore > multiple bindings to a key will occur more than once. > The function has to sort them out. > > I'm shure it's more efficient to implement that inside the > hashtbl-module. (I've not looked into the sources, but suppose > that it will be more performant, when a Hashtbl.keys will > be implemented inside the Hashtbl-module.) Please, tell me why you don't like my solution: http://caml.inria.fr/archives/200404/msg00527.html Best regards, Martin ------------------- 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