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 9AC5CBC88 for ; Mon, 7 Feb 2005 21:16:38 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j17KGcHF011648 for ; Mon, 7 Feb 2005 21:16:38 +0100 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 VAA21180 for ; Mon, 7 Feb 2005 21:16:37 +0100 (MET) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.203]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j17KGabO003419 for ; Mon, 7 Feb 2005 21:16:37 +0100 Received: by wproxy.gmail.com with SMTP id 69so767494wra for ; Mon, 07 Feb 2005 12:16:36 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=DlaYoRH1eP5Y3uVCLlJQ3Dv8GAw5AxLgtsXlyiOgRIj0Fr3cFE7/iajVMkaD+O7Jx/VZi1AokcxcsLxpzg553tUWdIM7Uwjr8LhryqqMGLDpLu5jKPmEYKm31ZHY4NZ655A0gILDBxFYqM6EeEH9QRkDIZT957fMsjvXwGZ+YzA= Received: by 10.54.52.5 with SMTP id z5mr76579wrz; Mon, 07 Feb 2005 12:16:36 -0800 (PST) Received: from localhost ([141.155.88.179]) by smtp.gmail.com with ESMTP id 64sm1499wra.2005.02.07.12.16.35; Mon, 07 Feb 2005 12:16:36 -0800 (PST) Date: Mon, 7 Feb 2005 15:16:34 -0500 From: Markus Mottl To: Christophe TROESTLER Cc: farr@mit.edu, caml-list@inria.fr Subject: Re: [Caml-list] [Benchmark] NBody Message-ID: <20050207201634.GA7983@quant3.janestcapital.quant> Mail-Followup-To: Christophe TROESTLER , farr@mit.edu, caml-list@inria.fr References: <20050207.195724.87945401.Christophe.Troestler@umh.ac.be> <68b7b7bf7d559600cf85b24d60f06cb2@mit.edu> <20050207.203659.94743120.Christophe.Troestler@umh.ac.be> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050207.203659.94743120.Christophe.Troestler@umh.ac.be> User-Agent: Mutt/1.4.1i X-Miltered: at concorde with ID 4207CCA6.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4207CCA4.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; markus:01 mottl:01 markus:01 mottl:01 caml-list:01 christophe:01 troestler:01 wrote:01 rec:01 ocaml:01 loops:02 caml:02 slightly:02 benchmark:02 let:03 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.5 required=5.0 tests=INFO_TLD,RCVD_BY_IP autolearn=disabled version=3.0.2 X-Spam-Level: On Mon, 07 Feb 2005, Christophe TROESTLER wrote: > I thought that. Still, I'd like to know whether there is a way to > make Caml code that fast or if not why. I have personally found that using "let rec" loops often slightly improves performance over "for"-loops. Maybe this is just anecdotal evidence, but you might want to try that instead. Regards, Markus -- Markus Mottl markus.mottl@gmail.com http://www.ocaml.info