Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 61175 invoked from network); 3 Aug 2010 11:33:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Aug 2010 11:33:47 -0000 Received: (qmail 9010 invoked by uid 500); 3 Aug 2010 11:33:47 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 8746 invoked by uid 500); 3 Aug 2010 11:33:45 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 8738 invoked by uid 99); 3 Aug 2010 11:33:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Aug 2010 11:33:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [80.250.12.129] (HELO aura.cz) (80.250.12.129) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Aug 2010 11:33:39 +0000 Received: (qmail 31131 invoked by uid 621); 3 Aug 2010 11:33:17 -0000 Received: from 192.168.1.147 by server1.uvoz.aura.cz (envelope-from , uid 502) with qmail-scanner-2.06 (avgd: ???. spamassassin: 3.3.1. Clear:RC:1(192.168.1.147):. Processed in 0.035412 secs); 03 Aug 2010 11:33:17 -0000 Received: from unknown (HELO [192.168.1.147]) ([192.168.1.147]) (envelope-sender ) by aura.cz (qmail-ldap-1.03) with SMTP for ; 3 Aug 2010 11:33:16 -0000 Subject: Re: Myfaces vs. mojarra restore view performance From: Martin Koci To: MyFaces Development In-Reply-To: <1280780452.2985.124.camel@markoc-desktop> References: <1280767443.2985.80.camel@markoc-desktop> <1280780452.2985.124.camel@markoc-desktop> Content-Type: text/plain; charset="UTF-8" Date: Tue, 03 Aug 2010 13:32:43 +0200 Message-ID: <1280835163.2985.171.camel@markoc-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 8bit https://issues.apache.org/jira/browse/MYFACES-2854 Martin Koci píše v Po 02. 08. 2010 v 22:20 +0200: > Hi, > > quick results: yourkitprofiler marks as hot spot > UiViewRoot.addComponentResource (3381 invocation count) - that method > itself creates 5 710 511 invocations of AbstractIterator.next() > > Reason probably is that I have custom renderer for UInput with > @ResourceDependencies(...many @ResourceDependecy here). > > All invocations comes from > org.apache.myfaces.view.facelets.tag.jsf.ComponentTagHandlerDelegate.apply recursively during restore view - VDL.buildView. > > Solution: @ResourceDependencies is static structure and cannot change > during lifecycle - call addComponentResource for particular type of > component (renderer, validator, ...) only once per one lifecycle ? > > > Thanks, > > Martin Kočí > > Jan-Kees van Andel píše v Po 02. 08. 2010 v 19:18 +0200: > > Hey, > > > > > > I'm very interested in the details behind those 750ms. Can you post > > the hotspots? Like: number of invocations, ms. self time and ms. total > > time. > > > > > > Thanks. > > > > > > Regards, > > Jan-Kees > > > > > > 2010/8/2 Martin Koci > > Hi, > > > > our profiling results show that myfaces are significantly > > slower in > > restore view phase: > > > > com.sun.faces.... LifeCycle .. restoreView : 80 ms > > > > o.a.m.RestoreViewExecutor : 750ms! > > > > This result is perfectly reproducible in our case. I profile > > it on a > > application real application - I cannot post test case here. > > > > Configuration: myfaces or mojarra from trunk, partial state > > saving, a > > view with more than 200 UIInput components. > > > > > > Is it a known problem? I will provide more detailed profiling > > results > > later. > > > > Regards, > > > > Martin Kočí > > > > > > > > > > > > > > > > >