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 CAA25690; Mon, 3 Dec 2001 02:12:11 +0100 (MET) 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 CAA25693 for ; Mon, 3 Dec 2001 02:12:10 +0100 (MET) Received: from favie.faith.gr.jp (favie.faith.gr.jp [61.127.175.250]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id fB31C7103019 for ; Mon, 3 Dec 2001 02:12:08 +0100 (MET) Received: from localhost (dhcp7.faith.gr.jp [192.168.1.17]) by favie.faith.gr.jp (8.9.3/8.9.3) with ESMTP id KAA21399; Mon, 3 Dec 2001 10:12:02 +0900 To: aborquez@altavista.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] partial function application perfomance In-Reply-To: <20011203001103.15717.cpmta@c016.snv.cp.net> References: <20011203001103.15717.cpmta@c016.snv.cp.net> X-Mailer: Mew version 1.94.2 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20011203101138O.garrigue@kurims.kyoto-u.ac.jp> Date: Mon, 03 Dec 2001 10:11:38 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk From: Arturo Borquez > I've being doing some benchmarks, and one of my tests > measures partial function application perfomance. I was > surprised by results: 20+ times slower than a full > function application. I expected a greater time but 20 > times is a lot more ... I've checked my program and > seems ok, indeed the results were correct. Is this > overhead normal to partial function applications? Can you post your code? If your function is small enough, full application may result in inlining, and a null cost. If you succeded in having your partial application have some cost (by doing something which prohibits inlining), the ratio may be arbitrarily large! Jacques Garrigue ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr