Dynamic protocol performance

Zulq Alam me at zulq.net
Thu Feb 7 11:21:29 UTC 2008


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.




More information about the Squeak-dev mailing list