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 LAA23852; Thu, 25 Jul 2002 11:21:40 +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 LAA23854 for ; Thu, 25 Jul 2002 11:21:39 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g6P9LbT13397; Thu, 25 Jul 2002 11:21:37 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA23858; Thu, 25 Jul 2002 11:21:36 +0200 (MET DST) Date: Thu, 25 Jul 2002 11:21:36 +0200 From: Xavier Leroy To: Brian Naylor Cc: caml-list@inria.fr Subject: Re: [Caml-list] functor question Message-ID: <20020725112136.A23741@pauillac.inria.fr> References: <20020724042635.18417.qmail@web13404.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20020724042635.18417.qmail@web13404.mail.yahoo.com>; from bwv211mail@yahoo.com on Tue, Jul 23, 2002 at 09:26:35PM -0700 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Is there any efficiency difference between: > module Foo = Make (Bar) (Baz) > and > module Both = struct module Bar = Bar module Baz = Baz end > module Foo = Make (Both) > In other words, is it better to coalesce structures into a single > functor application rather than to apply multiple functors? Do I > pay more indirection costs in the first case? Thanks. Actually, you pay one more indirection in the second case (Make(Both)). - Xavier Leroy ------------------- 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