[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fixes to goops + light structs + 'u' slots
From: |
Mikael Djurfeldt |
Subject: |
Re: fixes to goops + light structs + 'u' slots |
Date: |
Wed, 16 Apr 2008 08:52:34 +0200 |
2008/4/16, Mikael Djurfeldt <address@hidden>:
> 2008/4/16, Andy Wingo <address@hidden>:
>
> > On Sun 13 Apr 2008 21:09, "Mikael Djurfeldt" <address@hidden> writes:
>
> > I then ran accessor ref tests on objects that necessarily had their slots
> > bound, and thus would go through @assert-bound-ref:
> >
>
> > (3) If the determination can be made that the slot will never be
> > unbound, and we compile to the @assert-bound-ref case, then
> > accessor refs are indeed faster than slot-ref.
>
> > [...]
>
> > I would speculate, Mikael, that it is case (3) that you are recalling.
>
>
> Right, although it is, in fact, @slot-ref which is the special form (I
> said "@assert-bound-ref" by mistake). Try the same benchmark
> accessing the third or fourth slot.
To be more clear: It is only for bound slots that the accessor can be
compiled down to the special form @slot-ref which was significantly
faster than other tested access methods, using that version of Guile
on the type hardware which was available then, at the time goops was
developed. It is new to me to see such small differences in timing.
Maybe it is also worth rolling up the loop a bit so that you have a
sequence of accesses in the loop body?
- Re: fixes to goops + light structs + 'u' slots, (continued)
- Re: fixes to goops + light structs + 'u' slots, Mikael Djurfeldt, 2008/04/13
- Re: fixes to goops + light structs + 'u' slots, Ludovic Courtès, 2008/04/13
- Re: fixes to goops + light structs + 'u' slots, Andy Wingo, 2008/04/14
- Re: fixes to goops + light structs + 'u' slots, Mikael Djurfeldt, 2008/04/14
- Re: fixes to goops + light structs + 'u' slots, Andy Wingo, 2008/04/19
- Re: fixes to goops + light structs + 'u' slots, Mikael Djurfeldt, 2008/04/19
- Re: fixes to goops + light structs + 'u' slots, Andy Wingo, 2008/04/20
- Re: fixes to goops + light structs + 'u' slots, Mikael Djurfeldt, 2008/04/14
- Re: fixes to goops + light structs + 'u' slots, Andy Wingo, 2008/04/15
- Re: fixes to goops + light structs + 'u' slots, Mikael Djurfeldt, 2008/04/16
- Re: fixes to goops + light structs + 'u' slots,
Mikael Djurfeldt <=