You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Juergen Donnerstag (JIRA)" <ji...@apache.org> on 2008/12/23 12:12:44 UTC

[jira] Commented: (WICKET-1671) Performance problem with detach (Component.isAuto)

    [ https://issues.apache.org/jira/browse/WICKET-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12658823#action_12658823 ] 

Juergen Donnerstag commented on WICKET-1671:
--------------------------------------------

I did some tests against 1.4 trunk. I basically used your source code and created a test case

public class PerformanceTest extends WicketTestCase
{
	public void testRenderHomePage() throws Exception
	{
		for (int i = 0; i < 10; i++)
		{
			tester.startPage(PerformanceTestPage.class);
			tester.assertRenderedPage(PerformanceTestPage.class);

			if ((i % 100) == 0)
			{
				System.out.println(i);
			}
		}

		System.out.println("fertig");
	}
}

Executing that test case and monitoring it with the Yourkit profiler the result is that isAuto() is invoked 2160 times and execution took 157ms. Out of these 2160 isAuto was called 1060 times by detach.

I've not yet tested it against 1.3 but based on my numbers, any improvement would only be limited.

> Performance problem with detach (Component.isAuto)
> --------------------------------------------------
>
>                 Key: WICKET-1671
>                 URL: https://issues.apache.org/jira/browse/WICKET-1671
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.3.3
>         Environment: Tomcat 5.5.23
> Windows XP/JDK 1.6.0_03
> Windows 2003/JDK 1.5
>            Reporter: Heikki Uotinen
>            Assignee: Johan Compagner
>         Attachments: detach.zip
>
>
> We have an application that uses AjaxSelfUpdatingTimerBehavior to update a panel that has several child components.
> Application has a performance problem and profiler shows that the most time is consumed in Component.isAuto method.
> It seems that isAuto flag is checked up and down the component tree.
> There is attached a simple demonstration about the problem and screenshots of the profiler displays.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.