[UI] Well, shall we do something then?

David T. Lewis lewis at mail.msen.com
Thu Sep 20 03:38:04 UTC 2007


Yes, there have been a few attempts to address this. I took a stab at
a part of the problem myself in http://bugs.squeak.org/view.php?id=2910.
I don't know the status of Martin Loewis' proposal, so all I can say
is that I hope it helps. I do know that Andreas Raab, who implemented
the underlying finalization mechanism, has indicated that implementing
a more scaleable approach is not a trivial undertaking. I believe that
it would involve VM changes as well as image changes, but I'm getting
out of my depth at this point, and I don't recall exactly what Andreas
had to say about it. The discussion should be in the mailing list
archives somewhere (possibly on the Seaside mailing list as well).

Dave

On Wed, Sep 19, 2007 at 10:48:24PM -0400, Chris Muller wrote:
> I've observed Martin Loewis' new WeakKeyDictionary implementations
> reduce the problem dramatically.
> 
>     http://bugs.squeak.org/view.php?id=6348
> 
> I know sig has done similar work but I haven't had time yet to try it.
> 
> 
> On 9/19/07, David T. Lewis <lewis at mail.msen.com> wrote:
> > On Wed, Sep 19, 2007 at 12:38:44AM +0300, Igor Stasenko wrote:
> > > On 18/09/2007, Gary Chambers <gazzaguru2 at btinternet.com> wrote:
> > > > Well, there is the Model but there has to be a linkage for when the model
> > > > changes. That's the basics. We need to decide on the way(s) we wish that to
> > > > happen. I find changed/update rather inefficient. Much prefer when:send:to:.
> > > >
> > > > But that's just the start. Pretty fundamental though.
> > > >
> > > Yes! And i think this is the point where we should start from.
> > > How to create flexible event system , how exchange data between view
> > > and model. Based on that we then can build up a model which will use
> > > it (MVP/Morphic whatever)
> >
> > A note of caution: The #when:send:to: mechanism can have serious performance
> > issues due to its use of weak dictionaries. Performance of the entire image
> > is seriously impacted by weak array finalization as the number of these
> > dictionaries increases. There is no easy fix for this, so make sure you
> > know what you are getting into before you start with an approach based
> > on this mechanism.
> >
> > Dave
> >
> > _______________________________________________
> > UI mailing list
> > UI at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/mailman/listinfo/ui
> >
> _______________________________________________
> UI mailing list
> UI at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/ui


More information about the UI mailing list