[squeak-dev] Finalization enhancement
leves at elte.hu
Mon Feb 22 13:40:56 UTC 2010
I uploaded two packages which contain this change. To load it evaluate the
(Installer squeakfoundation project: 'inbox')
On Sun, 21 Feb 2010, Levente Uzonyi wrote:
> since WeakRegistry is refactored, there's an easy way to enhance finalization
> performance, by changing WeakRegistry >> #installFinalizer's implementation
> valueDictionary finalizer: #finalize
> This means that the object finalizers (executors) are not collected, but are
> immediately evaluated whenever the WeakRegistry finds them. Therefore these
> objects live for a shorter time and need less administration.
> But there's a side effect. Currently only the WeakArray finalization process
> can evaluate the finalizers'. If we change this, any process which accesses
> the WeakRegistry may evaluate finalizers.
> I can't think of any problem with the side effect, but I may be wrong. Should
> we change the current behavior?
More information about the Squeak-dev