[Squeak-dev] Slowdown with required methods...
Alexandre Bergel
Alexandre.Bergel at hpi.uni-potsdam.de
Mon Jun 4 08:00:50 UTC 2007
Hello,
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...
Regards,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
More information about the Squeak-dev
mailing list
|