[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CLOS Speed
- To: larus@ginger.Berkeley.EDU
- Subject: Re: CLOS Speed
- From: Gregor.pa@Xerox.COM
- Date: Wed, 29 Jun 88 16:20 PDT
- Cc: commonloops.pa@Xerox.COM
- Fcc: BD:>Gregor>mail>outgoing-mail-2.text.newest
- In-reply-to: <8806292200.AA08497@paris.Berkeley.EDU>
- Line-fold: no
Date: Wed, 29 Jun 88 15:00:13 PDT
From: larus%paris.Berkeley.EDU@ginger.Berkeley.EDU (James Larus)
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.
I had assumed that all implementations did the optimization that
prevented this interpreted code from being called at runtime. It goes
to show that you don't ever know.
I will include your change in the next release of PCL.
- Re: CLOS Speed
- From: larus%paris.Berkeley.EDU@ginger.Berkeley.EDU (James Larus)