[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CLOS Speed

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.