Odd performance question

Timothy Reaves treaves at silverfields.com
Fri Aug 3 02:25:02 UTC 2001


	Hello all.

	Here's a question.  I take the code '1000 factorial' and do it.  It takes 35 milliseconds (using Time MillisecondsToRun).  When I take the same code and 'print it', it takes about 9500 milliseconds.  This is two orders of magnatude slower!

	Why?  Are not the same objects created, with the printing version just printing an ASCII representation of the final end product Object?

	Thanks!




More information about the Squeak-dev mailing list