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 QAA22064; Wed, 28 Aug 2002 16:34:18 +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 QAA22416 for ; Wed, 28 Aug 2002 16:34:18 +0200 (MET DST) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g7SEYHX23239 for ; Wed, 28 Aug 2002 16:34:17 +0200 (MET DST) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id g7SEYHl73693 ; Wed, 28 Aug 2002 16:34:17 +0200 (CEST) Received: from localhost (frisch@localhost) by clipper.ens.fr (8.12.3/jb-1.1) id g7SEYF6n021347 ; Wed, 28 Aug 2002 16:34:16 +0200 (MET DST) Date: Wed, 28 Aug 2002 16:34:15 +0200 (MET DST) From: Alain Frisch To: John Max Skaller cc: Caml list Subject: Re: [Caml-list] O'Caml vs C++: a little benchmark In-Reply-To: <3D6CD46E.1030701@ozemail.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, 28 Aug 2002, John Max Skaller wrote: > [There's nothing to gain from > a simple inlining, unless the loop is only executed > once or twice - you'd only save a single function call] Why ? You can unroll the call to the function in its own body, up to a fixed depth n and divide the number of function calls by n (and allow subsequent optimizations, such as boxing/unboxing removal). -- Alain ------------------- 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