not inlining #class (was Re: Singletons)
Lukas Renggli
renggli at student.unibe.ch
Fri Dec 5 07:32:44 UTC 2003
Hi,
Is this what you want? It works in 3.6, I don't know if it does on 3.7.
(ParseNode classPool at: #StdSelectors)
removeKey: #class
ifAbsent: [ "nothing" ]
There is a minor loss of speed when patching the compiler like this, it
takes for 10'000'000 calls of #class on my machine 6'103 ms, whereas
before it took only 4'231 ms.
Regards,
Lukas
--
Lukas Renggli
http://renggli.freezope.org
More information about the Squeak-dev
mailing list
|