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 RAA16944; Mon, 19 Mar 2001 17:02:10 +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 RAA16980 for ; Mon, 19 Mar 2001 17:02:09 +0100 (MET) Received: from onyx.posse42.net (paris11-nas4-47-6.dial.proxad.net [212.27.47.6]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f2JG27P22441 for ; Mon, 19 Mar 2001 17:02:07 +0100 (MET) Received: (from sebc@localhost) by onyx.posse42.net (8.10.2/8.10.2) id f2JG24m05656; Mon, 19 Mar 2001 16:02:04 GMT Date: Mon, 19 Mar 2001 17:01:48 +0100 From: Sebastien Carlier To: "caml-list@inria.fr" Cc: Alex Baretta Subject: Re: [Caml-list] "Nasty" functions and memory usage Message-ID: <20010319170148.A5637@posse42.net> References: <3AB2BF73.75CD2B03@baretta.com> <3AB624F9.5B6C6680@baretta.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3AB624F9.5B6C6680@baretta.com>; from alex@baretta.com on Mon, Mar 19, 2001 at 04:25:45PM +0100 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Alex Baretta wrote: > Now, my question is, how come the memory usage of the Ocaml (3.00) > front end does not grow with time as it attempts to compute the > type of, say, f6? I think it's pretty-printing that is actually taking a lot of time. During inference you would only have (2**n) types because there is a lot of sharing. However, if you try to print the type you will really have (2**(2**n)) nodes to traverse. -- Sebastien ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr