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 -