Idea for a possibly better Collection occurrencesOf method.

ncellier at ifrance.com ncellier at ifrance.com
Tue Sep 12 07:42:14 UTC 2006


It's all right if you reduce a loop budget from N*N to N.
But just do not spend to much time on smaller optimization like inlining code.
Exupery should do it for you in near future.
It's better to keep code small and clean with inject:into: and count:
the reason for not using count: is probably historical (no count: message in st80).

Nicolas


________________________________________________________________________
iFRANCE, exprimez-vous !
http://web.ifrance.com


More information about the Squeak-dev mailing list