[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CLOS Speed
- To: Gregor.pa@Xerox.COM
- Subject: Re: CLOS Speed
- From: larus%paris.Berkeley.EDU@ginger.Berkeley.EDU (James Larus)
- Date: Wed, 29 Jun 88 15:00:13 PDT
- Cc: commonloops.pa@Xerox.COM
- In-reply-to: Your message of Wed, 29 Jun 88 13:29:00 PDT. <19880629202919.1.GREGOR@PORTNOY.parc.xerox.com>
- Redistributed: commonloops.pa
- Reply-to: larus@ginger.Berkeley.EDU
The reason that this function speeds up execution of my program is
that the body (BODY) passed to DO-DEFTYPE is *interpreted* everytime
that TYPEP is applied to a PCL object. In fact, since TYPEP must
apply many, if not most, of the predicates, these simple code
fragements are interpreted frequently. This interpretation is
expensive. Compiling the body reduces the cost of these predicates to
a trivial amount.
/Jim