An optimization example

20 October, 2006

In a recent discussion on the Squeak-dev mailing list, a Squeak implementation of the Sieve of Eratosthenes was compared with a Java implementation.

Andres Vallous took the original code submitted to the list and produced an optimized version of it. His message to Squeak-dev details the step of this optimization.

Together with Andreas Raab’s MessageTally tutorial, this example is a good guide on how to profile and optimize an algorithm written in Smalltalk

Leave a comment