[squeak-dev] iterating on compiled methods
nicolas.cellier.aka.nice at gmail.com
Fri Jan 15 21:08:45 UTC 2010
I noticed the first pattern is often used: we iterate on selectors
when we want to iterate on CompiledMethods
methodDictionary do: is maybe not a nice pattern, wa can replace with
compiledMethodsDo: or just methodsDo:
I think such change could be noticeable in development tools on slow machines
[Morph selectorsDo: [:sel | | m | m := Morph compiledMethodAt: sel]] bench.
[Morph methodDictionary do: [:m | ]] bench.
#('683.0633873225355 per second.' '4275.94481103779 per second.')
More information about the Squeak-dev