[ENH] Ten Percent Faster Morphic! (with conversion)
Ned Konz
ned at bike-nomad.com
Tue Aug 6 18:04:58 UTC 2002
On Tuesday 06 August 2002 10:41 am, Stephen Pair wrote:
> So Ned...why didn't you subclass IdentityDictionary for
> MorphProperties? You could have overidden #at: to scan the first
> few slots of the array, and if that didn't find your target, just
> finish with a call to the super implementation of #at: (assuming
> here that lookup is the critical optimization and not
> adding/removing).
Size and number of indirections. My second stab at it used an Array
with alternating keys and values. Of course, putting in an
OrderedCollection later pretty much negated the original reasons...
I might go back to an Array.
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|