[Pharo-project] Morphic cleaning

Stéphane Ducasse stephane.ducasse at inria.fr
Fri Feb 5 11:59:21 EST 2010


Lukas 

can you find the sender of + (which is inlined).



> If I were you I would use the refactoring browser (load the latest
> code, I just found and fixed a bug related to sent-messages
> calculation) for that:
> 
> For Morphic this takes about 1 second on my system and finds over 600
> unsent messages:
> 
>   rule := RBImplementedNotSentRule new.
>   rule runOnEnvironment: (BrowserEnvironment new
>       forPackageNames: #('Morphic'))
> 
> And for the complete system about 750 ms and finds over 4500 unsent
> messages (not counting tests, because they are all unsent). Obviously
> iterating through a package is the most expensive thing in this whole
> process:
> 
>   rule := RBImplementedNotSentRule new.
>   rule runOnEnvironment: BrowserEnvironment new
>       forPackageNames: #('Morphic'))
> 
> To open a browser on the result evaluate:
> 
>   rule open
> 
> Note, that opening a browser on that many methods can is slow.

Why this is that slow in the image and not in RB.
because it does it at the AST level and not scanning all the bytecode?


> 
> Lukas
> 
> -- 
> Lukas Renggli
> http://www.lukas-renggli.ch
> 
> _______________________________________________
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project





More information about the Pharo-dev mailing list