WICKET-5083 (6.8.0) Wicket initializes the page before calculating whether the page is stateless.
We identified a performance problem when a page is constructed (and thus touched) but then ignored via setResponsePage(AnotherPage.class)/RestartResponsePage and thus is not rendered and initialized.
In this case there is no reason to check whether the page is stateful and store it. Using browser back button will go to the previous page anyway.
- pageA has a link to PageB
- in PageB's constructor a RestartResponseException(PageC.class)
- PageC is rendered
In this example PageB will be fully initialized in org.apache.wicket.page.RequestAdapter#commitRequest to check whether it is stateful or not.
But there is really no reason to store it at all since PageB has never been rendered.
In our case PageB#onInitialize was expensive (read some settings from the backend) and thus we noticed the difference.
|Assignee||Martin Grigorov [ mgrigorov ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Fix Version/s||6.13.0 [ 12325564 ]|
|Fix Version/s||7.0.0 [ 12322958 ]|
|Resolution||Fixed [ 1 ]|
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|1d 18h 48m||1||Martin Grigorov||15/Nov/13 09:14|