[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Singleton, default DEFMETHOD now as fast as a DEFUN?
- To: GRAY%Kelvin.email@example.com
- Subject: Re: Singleton, default DEFMETHOD now as fast as a DEFUN?
- From: Gregor.pa@Xerox.COM
- Date: Tue, 18 Jul 89 12:37 PDT
- Cc: firstname.lastname@example.org, commonloops.pa@Xerox.COM
- Fcc: BD:>Gregor>mail>outgoing-mail-7.text.newest
- In-reply-to: <2825686558-15607391@Kelvin>
- Line-fold: no
Date: Mon, 17 Jul 89 11:55:58 CDT
> 1) Did I find a rather special case, or is it generally true now that
> a DEFUN can be replaced by the corresponding DEFMETHOD without
> loss of speed?
I can't say about PCL, but there is nothing in the CLOS spec that
requires this, so you shouldn't expect this to be true in other CLOS
The spec doesn't say anything about performance at all, so it can't say
anything about the performance of this special case.
Given that the `semantics' of this case require less work than the
`semantics' of the more general cases, I believe users will expect
implementations to do better on this case than the more general ones.