[Squeak-dev] Slowdown with required methods...

Alexandre Bergel Alexandre.Bergel at hpi.uni-potsdam.de
Mon Jun 4 08:00:50 UTC 2007


As you probably noticed, the 'required' dynamic protocol slows down  
the code browsing.
The method DynamicProtocols class>>collectAllProtocolsOnClass: aClass  
has the following comment:
"Returns a collection of all dynamic protocols that should be displayed
	for the current class.
	Only non-empty protocols are returned"

Although it makes sense to display non-empty protocols only,  
DPRequired makes a significant slowdown because required methods have  
to be computed to determine if this dynamic protocol has to be  
displayed or not.

What about defining a hasRequiredMethod in Behavior? I guess this  
will remove the slowdown...

Alexandre Bergel  http://www.bergel.eu

More information about the Squeak-dev mailing list