🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.clos
Article #185

Slot access performance (was Re: Beginner's Question - CLOS)

#185
From: Jon L White
Date: Wed, 26 Aug 1992 05:07
27 lines
1800 bytes
re: This is not to pick on Lucid's native CLOS at all;  indeed, from other
    benchmarks, many of the commercial vendor's CLOS's seem to have a similar 

First, Lucid's 4.1 release shows a "naked slot value" time about a
factor of two faster than the 4.0.2 time; so that would tend to defuse
these statistics a bit.

But much more importantly is to look at SLOT-VALUE in an open-codable
context; Lucid's implementations  show almost an order of magnitude
speed up over "naked slot value", and the 4.1 release even obeys all
the MOP'ish concerns.  This context is usually (1) within the lexical
scope of a defmethod, (2) object is lexically recognizable as one of
the specialized parameters, and (3) slot name is compile-time constant.
[PCL used to have this sort of context-dependent optimization also,
but without the automated invalidation for MOP'ish concerns.]  

Your numbers somehow don't seem to be consistent for this case --
I get 173,913 on a Sparc2, where you get 35,000 on a Sparc1.  The
two hardware platforms aren't _that_ much different, are they?  Secondly,
this benchmark is mostly measuring the slot-optimization context setup
time and not the slot-access time.  The benchmark should be re-written
to do, say, 10 slot-accesses in each WITH-SLOT's or DEFMETHOD form.




-- JonL --
Technical Details
Message-ID: <9208260507.AA05043@kuwait.lucid>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!lucid.com!jonl%kuwait
References: <1992Aug26.011902.14530@cs.ucla.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.clos
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!lucid.com!jonl%kuwait
From: jonl%kuwait@lucid.com (Jon L White)
Subject: Slot access performance (was Re: Beginner's Question - CLOS)
Message-ID: <9208260507.AA05043@kuwait.lucid>
Sender: daemon@cis.ohio-state.edu
Organization: The Ohio State University Department of Computer and Information Science
References: <1992Aug26.011902.14530@cs.ucla.edu>
Date: Wed, 26 Aug 1992 05:07:48 GMT
Lines: 27