[ENH] Ten Percent Faster Morphic! (with conversion)

Ned Konz ned at bike-nomad.com
Wed Aug 7 14:23:34 UTC 2002


On Wednesday 07 August 2002 02:34 am, Henrik Gedenryd wrote:
> But the dictionary scans always stop at nil. That's how it works.
> Right?

Yes; I wonder what I was thinking...

> > Depending on whether the (hash mod: size) operation is costly, it
> > might make sense to do this in the primitive as well.
>
> These aren't expensive, the #= send is. It dwarfs the gains from
> using your technique, so it is only worth it for id-dictionaries.
> Using = instead of == went from 6 to 19 in my test, while your mods
> take it from 6 to 4. Changing the unrolled one to use = takes it
> from 4 to 13.

Yeah, I noticed that.

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE




More information about the Squeak-dev mailing list