[Pharo-project] Remove #class as a Compiler optimization

Alexandre Bergel alexandre.bergel at me.com
Tue Apr 5 17:48:25 CEST 2011


Running the all unit test is probably a better benchmark.

Alexandre


On 5 Apr 2011, at 07:56, Igor Stasenko wrote:

> VariableNode initialize.
> Compiler recompileAll.
> 
> [
> TestCase allSubclasses do: [ :cls|
>        cls isAbstract
>                ifFalse: [cls suite run]].
> ] timeToRun
> 
> 178938
> 183963
> 
> 
> 
> (ParseNode classVarNamed:  'StdSelectors') removeKey: #class ifAbsent: [].
> Compiler recompileAll.
> 
> [
> TestCase allSubclasses do: [ :cls|
>        cls isAbstract
>                ifFalse: [cls suite run]].
> ] timeToRun
> 
> 187168
> 184992
> 
> the deviation is too big to see if its really so big overhead.
> 
> if you compare worst , you got  187/178 ~ 5%
> and if you compare the best you got
> 184/183  ~ 0.5%
> 
> 
> -- 
> Best regards,
> Igor Stasenko AKA sig.
> 

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.








More information about the Pharo-project mailing list