Performance figures [Re: Idea for a possibly better Collection occurrencesOf method]

Jon Hylands jon at huv.com
Wed Sep 13 17:43:38 UTC 2006


On Wed, 13 Sep 2006 18:10:30 +0200, "Klaus D. Witzel"
<klaus.witzel at cobss.com> wrote:

> I doubt that a primitive implementation would show a significantly better  
> factor, because the VM already is fast! and because in practice the  
> #to:do: intervals are usually smaller than in the above. The only  
> difference I saw in the bytecodes was related to the #to:do: and #value:  
> message send.

The point of the #apply... primitive is so that all the enumeration methods
run as fast as #to:do:, so you don't have to worry about trading off code
clarity and re-use for performance.

Later,
Jon

--------------------------------------------------------------
   Jon Hylands      Jon at huv.com      http://www.huv.com/jon

  Project: Micro Seeker (Micro Autonomous Underwater Vehicle)
           http://www.huv.com



More information about the Squeak-dev mailing list