From: Edi W. <ed...@ag...> - 2006-12-28 00:46:22
|
On Thu, 28 Dec 2006 00:53:52 +0100, Pascal Costanza <pc...@p-...> wrote: > It is generally better to use accessor functions than to use direct > slot accesses, both for hiding implementation details (accessors can > more easily be replaced by plain functions in case of design > changes), for the ability to add :before/:after/:around methods in a > straightforward way, _and_ for performance reasons. To the best of > my knowledge, this is the case for all CLOS implementations. My recent experiments (not very extensive, though) seem to suggest that on LispWorks SLOT-VALUE is faster than accessors, at least if you don't disable the slot access optimizations. |