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

Igor Stasenko siguctua at gmail.com
Tue Apr 5 13:56:12 CEST 2011


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.



More information about the Pharo-project mailing list