[Ecls-list] Change

Juan Jose Garcia-Ripoll jjgarcia at users.sourceforge.net
Tue Apr 29 08:47:16 UTC 2008


On Mon, Apr 28, 2008 at 6:06 PM, Juan Jose Garcia-Ripoll
<jjgarcia at users.sourceforge.net> wrote:
>  So, I opted for the simplest solution which is to use the standard
>  method. Incidentally it also conses less, as it creates a single
>  function per direct slot.

Even with this scheme one can get a reasonable speed up by inlining
the code to fecth the slot table, the slot definition and the slot
location. I have added two closures that do this for classes with
"optimized-slot-access = t". Help is welcome in developing a more
clever and efficient algorithm for slot accessors which is still
compatible with AMOP's expectations.

Juanjo

-- 
Facultad de Fisicas, Universidad Complutense,
Ciudad Universitaria s/n Madrid 28040 (Spain)
http://juanjose.garciaripoll.googlepages.com




More information about the ecl-devel mailing list