Johan Compagner wrote:
> 
>>The initModel() is another story: I posted performance problems due to the
>> call to initModel() within getModel() before. For now, we have that code
>> commented on our side: no more recursive calls and gone are the
>> performance
>> problems.
> 
> 
> this still is very odd. Because walking the parent tree and calling
> instance
> of shouldn't cost
> any time.  So if there is a test cast where i see with yourkit really a
> performance penalty in that area
> i would be looking into that.
> 
> johan
> 

I have been looking at the code of Component:initModel() in the new trunk,
and there is a change there that solves our performance problem:
        // Dont call the getModel() that could initialize many inbetween
        // completely useless models.
        // IModel model = current.getModel();
        IModel model = current.model;
Since initModel() no longer calls getModel(), there are no longer recursive
calls to initModel(), which solves our problem.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Timeframe-to-move-wicket---wicket-ext-projects-to-JDK1.5-tf3638110.html#a10197016
Sent from the Wicket - Dev mailing list archive at Nabble.com.

Reply via email to