Wicket 1.5 is slower than 1.4 in rendering deep component trees.
See the attached application that adds recursively components with specified depth. In 1.5 it is several times slower than 1.4.
I found several problems:
1) org.apache.wicket.Component.configure() calls org.apache.wicket.Component.setRenderAllowed()
The problems is that configure() is called for each component in the hierarchy and setRenderAllowed() is overwritten in MarkupContainer to visit all children and call it for them. And the final result is that setRenderAllowed() is called for the parent and all its children, then for the first child and all its children again, and so on...
The solution is to completely remove org.apache.wicket.MarkupContainer.setRenderAllowed()
2) If you increase the number of components to > 1000 in 1.5 we hit StackOverflowError in
For 2.1 and 2.2 I suggest to add transient fields which will cache the calculated value after the first call of the get method.
For 2.3 I don't see a solution for now
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|10d 23h 11m||1||Martin Grigorov||15/Dec/11 14:30|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Fix Version/s||1.5.4 [ 12319051 ]|
|Fix Version/s||6.0.0 [ 12315431 ]|
|Resolution||Fixed [ 1 ]|