Array new: 1000000 performance question
jhkeel at facstaff.wisc.edu
Tue Jul 20 02:11:46 UTC 2004
Sorry if this is a known issue.
I discovered a curious performance issue in Squeak (3.7 and 3.6, Mac
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
What causes this?
More information about the Squeak-dev