Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!yale!husc6!encore!pierson From: pierson@encore.com (Dan L. Pierson) Newsgroups: comp.lang.lisp Subject: Re: flet, a question of style? Message-ID: Date: 4 Aug 90 22:20:16 GMT References: <1990Aug4.001913.22597@Neon.Stanford.EDU> Sender: news@Encore.COM Organization: Encore Computer Corporation Lines: 23 In-reply-to: rit@killdeer.Stanford.EDU's message of 4 Aug 90 00:19:13 GMT In article <1990Aug4.001913.22597@Neon.Stanford.EDU> rit@killdeer.Stanford.EDU (Jean-Francois Rit) writes: (about a FLET being more expensive than a DEFUN) Here is the heart of my question. Is it really so, does it always have to be? My own limited tests gave me a bit less than 10% in disfavor of flet. I also noticed that an flet form in the do clause of a MIT loop is not compiled. What Lisp system did you measure? With what OPTIMIZE settings? It's not obvious that calling a FLET should be more expensive, if it's inlined it should be less. The failure to compile the FLET in the LOOP sounds like a compiler bug to me. -- dan In real life: Dan Pierson, Encore Computer Corporation, Research UUCP: {talcott,linus,necis,decvax}!encore!pierson Internet: pierson@encore.com