[squeak-dev] Re: Using #= for integer comparison instead of #==

Bert Freudenberg bert at freudenbergs.de
Wed Nov 17 14:13:18 UTC 2010


On 17.11.2010, at 06:52, Levente Uzonyi wrote:

> Also the 32 most frequently used methods are not the 32 special selectors.
> 
> | b mostFrequentSelectors specialSelectors |
> b := Bag new.
> CompiledMethod allInstancesDo: [ :method | b addAll: method messages ].
> mostFrequentSelectors := (b sortedCounts first: 32) replace: #value.
> specialSelectors := Smalltalk specialSelectors select: #isSymbol.
> {
>        specialSelectors difference: mostFrequentSelectors. "Shouldn't be special"
>        mostFrequentSelectors difference: specialSelectors. "Should be special"
> }.
> 
> #(
> 	#(#'>=' #'~=' #/ #'\\' #bitShift: #'//' #bitAnd: #bitOr: #next #atEnd #blockCopy: #value #value: #x #y)
> 	#(#, #assert: #first #name #add: #nextPutAll: #isEmpty #error: #asString #includes: #default #translated #not #on: #collect:))

Hehe, that just shows how unconcerned we have become with performance and memory ;)

- Bert -





More information about the Squeak-dev mailing list