There is... I profiled our app, and creating a flat model hierarchy can save quite some memory. Every layer of inheritance adds a reference to the super type, and takes 4 bytes (see the LDM thread for more information).
Saving this on the models gives extra room in mem usage. Same would go for components, but there the difference in functionality is larger, and there are much more types. Even so, I'm not sure that the removal of the object parameter was the only idea behind the flattening, it makes the hierarchy much cleaner. Martijn On 11/7/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
you mean things like removing the abstract compound model, etc? all that was done as part of removing the object param so without that there is no point in backporting. -igor On 11/7/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > On 11/7/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > i need some concrete examples here martijn! :) you think i remember > every > > refactor i do? > > Press f4 on IModel in eclipse in your 2.x workspace, and do the same > for the 1.x workspace. Notice the differences in hierarchy. > > > removing object will really break everything out there, so i don tknow > if we > > want to do that in 1.x branch > > We could make it a vote... But I share your concern. It is something > that existing users need to vote on I guess. For them it will make > moving to 2.0 a bit easier. > > Martijn > > > On 11/7/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > > > > > On 11/7/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > you mean the removal of the object param? > > > > > > That would be cool too. Not sure if that is possible, however. And > > > further mostly flattening the hierarchy, so that it is equivalent with > > > 2.0 > > > > > > Martijn > > > > > > > -igor > > > > > > > > > > > > On 11/6/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > > > > > > > > > On 11/7/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > > > > * IModel hierarchy improvements > > > > > > whats that? > > > > > > > > > > The simplifications in IModel hierarchy of 2.0 applied to 1.3 > > > > > > > > > > i.e. collapsing of models. > > > > > > > > > > You did it, don't you remember? :D > > > > > > > > > > Martijn > > > > > > > > > > > > > > > -- > > > > > <a href="http://www.thebeststuffintheworld.com/vote_for/wicket > > > ">Vote</a> > > > > > for <a href="http://www.thebeststuffintheworld.com/stuff/wicket > > > > > ">Wicket</a> > > > > > at the <a href="http://www.thebeststuffintheworld.com/">Best Stuff > in > > > > > the World!</a> > > > > > > > > > > > > > > > > > > > > > > -- > > > <a href="http://www.thebeststuffintheworld.com/vote_for/wicket > ">Vote</a> > > > for <a href="http://www.thebeststuffintheworld.com/stuff/wicket > > > ">Wicket</a> > > > at the <a href="http://www.thebeststuffintheworld.com/">Best Stuff in > > > the World!</a> > > > > > > > > > > -- > <a href="http://www.thebeststuffintheworld.com/vote_for/wicket">Vote</a> > for <a href="http://www.thebeststuffintheworld.com/stuff/wicket > ">Wicket</a> > at the <a href="http://www.thebeststuffintheworld.com/">Best Stuff in > the World!</a> >
-- <a href="http://www.thebeststuffintheworld.com/vote_for/wicket">Vote</a> for <a href="http://www.thebeststuffintheworld.com/stuff/wicket">Wicket</a> at the <a href="http://www.thebeststuffintheworld.com/">Best Stuff in the World!</a>
