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 LAA17718; Sat, 24 Apr 2004 11:20:05 +0200 (MET DST) 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 LAA17944 for ; Sat, 24 Apr 2004 11:20:04 +0200 (MET DST) Received: from hirsch.in-berlin.de (hirsch.in-berlin.de [192.109.42.6]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3O9K3YM003967 for ; Sat, 24 Apr 2004 11:20:03 +0200 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: Received: from hirsch.in-berlin.de (localhost [127.0.0.1]) by hirsch.in-berlin.de (8.12.11/8.12.11/Debian-3) with ESMTP id i3O9K27e024369 for ; Sat, 24 Apr 2004 11:20:03 +0200 Received: from first.UUCP (uucp@localhost) by hirsch.in-berlin.de (8.12.11/8.12.11/Debian-3) with UUCP id i3O95Pd9023532 for inria.fr!caml-list; Sat, 24 Apr 2004 11:05:25 +0200 Received: by first.in-berlin.de via sendmail from stdin id (Debian Smail3.2.0.114) Sat, 24 Apr 2004 10:53:32 +0200 (CEST) From: oliver@first.in-berlin.de (Oliver Bandel) Date: Sat, 24 Apr 2004 10:53:32 +0200 To: caml-list@inria.fr Subject: [oliver: Re: [oliver: Re: [Caml-list] Should be INSIDE STANDARD-LIB: Hashtbl.keys]] Message-ID: <20040424085332.GE821@first.in-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline User-Agent: Mutt/1.3.28i X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; oliver:01 in-berlin:01 oliver:01 bandel:01 caml-list:01 hashtbl:01 caml-list:01 hashtbl:01 2004:99 bandel:01 hash:01 implemented:01 bindings:01 caml:01 forwarded:97 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk ----- Forwarded message from oliver ----- To: Martin Jambon Subject: Re: [oliver: Re: [Caml-list] Should be INSIDE STANDARD-LIB: Hashtbl.keys] On Sat, Apr 24, 2004 at 03:30:53PM +0800, Martin Jambon wrote: > 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 I have not read it until now. But will have a look at it immediately. Ciao, Oliver ----- End forwarded message ----- ------------------- 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