Dynamic protocol performance
Damien Cassou
damien.cassou at gmail.com
Thu Feb 7 13:20:20 UTC 2008
On Feb 7, 2008 12:21 PM, Zulq Alam <me at zulq.net> wrote:
> Zulq Alam wrote:
>
> > Declaring interest wont help with initial access.
>
> I am wrong about this. Even cold access is improved by declaring interest.
>
> class := PluggableListMorph.
> class withAllSuperclasses do: [:e | LocalSends current clearOut: e].
> "LocalSends current
> lostInterest: nil
> inAll: class withAllSuperclasses."
>
>
> Time millisecondsToRun: [class requiredSelectors]. " 3481 "
>
> LocalSends current
> noteInterestOf: nil
> inAll: PluggableListMorph withAllSuperclasses.
>
> Time millisecondsToRun: [class requiredSelectors]. " 333 "
>
> I think 333 is still noticeable.
Does it still feels slow?
--
Damien Cassou
More information about the Squeak-dev
mailing list
|