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 DAA24545; Tue, 5 Nov 2002 03:49:32 +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 DAA25544 for ; Tue, 5 Nov 2002 03:49:31 +0100 (MET) Received: from stephens.ittc.ku.edu (stephens.ittc.ku.edu [129.237.125.220]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id gA52nUD22457 for ; Tue, 5 Nov 2002 03:49:30 +0100 (MET) Received: from george.ittc.ku.edu (george.ittc.ku.edu [129.237.126.117]) by stephens.ittc.ku.edu (8.12.6/8.12.6/ITTC-ANTISPAM-ANTIVIRUS-3.0) with ESMTP id gA52nPbc018940 for ; Mon, 4 Nov 2002 20:49:25 -0600 Date: Mon, 4 Nov 2002 20:49:25 -0600 (CST) From: Magesh Kannan To: caml-list@inria.fr Subject: [Caml-list] Currying vs Speed Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-VirusScan: Clean Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi All, Does currying one of the arguments to a function provide any run-time performance improvements? In the following code fragment, let my_func arg1 arg2 arg3 = let res = arg1 + arg2 + arg3 in res let my_func_wrapper arg1 arg2 arg3 = my_func arg1 arg2 arg3 let my_func_part = my_func 5 Does the invocation (my_func_part 10 20) run any faster than (my_func_wrapper 5 10 20)? Thanks, Magesh ------------------- 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