Article View: cu.slug
Article #404Re: CLOS accessors in genera 8.3
From: Tim Bradshaw
Date: Mon, 16 Mar 1998 00:00
Date: Mon, 16 Mar 1998 00:00
18 lines
1381 bytes
1381 bytes
* I wrote: [Automatically-defined accessors for classes lose badly if you define auxiliary methods for them.] Answering my own question: the system knows what methods are automatically defined, and does magic inside the body of methods to arrange for these things to compile into slot accesses prety much directly, after doing some fast runtime check that there are no `user' methods. If you define an auxiliary method it punts to a more general case, and this is much slower than function call (and it conses). Declaring the accessor NOTINLINE prevents the optimisation, and the bad case with aux. methods. It's nice having most of the the source code to browse.... --tim
Technical Details
Message-ID:
<890067163.1628@news.Colorado.EDU>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<199803121118.LAA10368@todday.aiai.ed.ac.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10077e,9c04e8b25ec363a0 X-Google-Attributes: gid10077e,public From: Tim Bradshaw <tfb@aiai.ed.ac.uk> Subject: Re: CLOS accessors in genera 8.3 Date: 1998/03/16 Message-ID: <890067163.1628@news.Colorado.EDU> X-Deja-AN: 334592211 Content-Transfer-Encoding: 7bit Sender: daemon@lace.colorado.edu References: <199803121118.LAA10368@todday.aiai.ed.ac.uk> Mime-Version: 1.0 Distribution: cu Content-Type: text/plain; charset=us-ascii X-Note1: message-id generated by recnews X-Note2: mail msgid was <199803161622.QAA09338@todday.aiai.ed.ac.uk> Organization: University of Colorado at Boulder Newsgroups: cu.slug