If you are not creating heaps of objects, however, it will work.
Or if you're not dropping references to heaps of objects, I suppose?
/ Mirar
Previous text:
2003-03-04 00:01: Subject: Re: Children and Clones
Note that set_weak_flag does not really work all that well, however.
Adding objects to a weak multiset will cause them not to be removed until the garbagecollector is run, which might be a rather long time, especially if your application has been running for quite some time without creating and destroying a lot of objects before.
As an example, my mediaplayer at times got about 20M objects before each gc, which promptly removed about 19.99M of them, causing the memory usage to raise rather quickly.
If you are not creating heaps of objects, however, it will work.
/ Per Hedbor ()