Array new: 1000000 performance question

Jack Keel jhkeel at facstaff.wisc.edu
Tue Jul 20 02:11:46 UTC 2004


Hi,

Sorry if this is a known issue.

I discovered a curious performance issue in Squeak (3.7 and 3.6, Mac 
and Windows):

Squeak idling cpu use (2% on 3Ghz XP and 9% on 350 Mhz G3)
then do it:
t := Array new: 1000000.

Array allocation is quick but cpu usage jumps to 15% (XP) 35%(on G3) 
and stays there.
Tried it in VW 7.2 and it didn't do this.
Using new: 1000 didn't trigger the cpu use either.

Smalltalk garbageCollect.  "Fixes it even though the object is still 
instantiated"

What causes this?

Jack




More information about the Squeak-dev mailing list