Question about GC and debugger
Joern Eyrich
Joern.Eyrich at syngenio.de
Wed Jul 24 19:44:36 UTC 2002
Diego,
as has been pointed out, your problem is not that you have many objects. Try for example
col := LinkedList new.
Smalltalk garbageCollect.
MessageTally spyOn: [1000000 timesRepeat: [col add: (Link new)]]
instead. Same number of objects, much faster.
It is that you are storing so many objects in *one* big object.
Maybe if you could describe more precisely what it is you actually want to do, people could give you better advice on how to avoid this problem.
Cheers,
Joern
More information about the Squeak-dev
mailing list
|