From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 4AB08BC48 for ; Thu, 31 Mar 2005 13:42:26 +0200 (CEST) Received: from paul.rtelekom.ru (paul.rtelekom.ru [217.146.42.160]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j2VBgOpo006492 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 31 Mar 2005 13:42:25 +0200 Received: from paul.rtelekom.ru (paul@localhost [127.0.0.1]) by paul.rtelekom.ru (8.13.1/8.13.1) with ESMTP id j2VBgLFq080366; Thu, 31 Mar 2005 15:42:21 +0400 (MSD) (envelope-from argentoff@rtelekom.ru) Received: (from paul@localhost) by paul.rtelekom.ru (8.13.1/8.13.1/Submit) id j2VBgLH3080365; Thu, 31 Mar 2005 15:42:21 +0400 (MSD) (envelope-from argentoff@rtelekom.ru) X-Authentication-Warning: paul.rtelekom.ru: paul set sender to argentoff@rtelekom.ru using -f X-Comment-To: Yoann Padioleau To: Yoann Padioleau Cc: Jon Harrop , caml-list@yquem.inria.fr Subject: Re: [Caml-list] OCaml troll on Slashdot References: <42363A86.6010309@1969.ws> <20050315083243.GO321@first.in-berlin.de> <20050315084529.E562F1880C3@orchestra.cs.caltech.edu> <200503150859.55997.jon@ffconsultancy.com> From: Paul Argentoff Date: Thu, 31 Mar 2005 15:42:21 +0400 In-Reply-To: (Yoann Padioleau's message of "15 Mar 2005 21:17:16 +0100") Message-ID: <867jjoavoi.fsf@paul.rtelekom.ru> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Corporate Culture) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at concorde with ID 424BE220.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 ocaml:01 clue:02 optimization:03 let:03 written:06 obvious:06 programmer:06 paul:08 paul:08 replace:09 version:13 U4:83 then:17 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Dear Yoann Padioleau, Let YP = "Yoann Padioleau" in written_by YP => YP> I have made the obvious optimization which is to replace the assoc YP> list by a Map (just changing 4 lines in the "troll" code), the ocaml YP> version is then far far faster. A programmer is always the clue ;) -- Yours truly, WBR, Paul Argentoff. Jabber: paul@jabber.rtelekom.ru RIPE: PA1291-RIPE