Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 26532 invoked from network); 24 Sep 2010 14:04:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Sep 2010 14:04:46 -0000 Received: (qmail 58655 invoked by uid 500); 24 Sep 2010 14:04:46 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 58027 invoked by uid 500); 24 Sep 2010 14:04:42 -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 58006 invoked by uid 99); 24 Sep 2010 14:04:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Sep 2010 14:04:41 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcjmu-myfaces-dev@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Sep 2010 14:04:33 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Oz8si-0004ds-M4 for dev@myfaces.apache.org; Fri, 24 Sep 2010 16:04:08 +0200 Received: from cm129-141.liwest.at ([81.10.129.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Sep 2010 16:04:08 +0200 Received: from werner.punz by cm129-141.liwest.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Sep 2010 16:04:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@myfaces.apache.org From: Werner Punz Subject: Re: [core] performance: disabling "old" technologies Date: Fri, 24 Sep 2010 16:04:00 +0200 Lines: 64 Message-ID: References: <1285331627.12042.167.camel@markoc-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm129-141.liwest.at User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 In-Reply-To: <1285331627.12042.167.camel@markoc-desktop> Actually not directly related but to a sidenote, I personally think we lose significant startup performance the way we parse the xml files via commons-digester, StAX would be a way faster alternative (although it probably would introduce about twice as much code because the digester api relies on reflection) Am 24.09.10 14:33, schrieb Martin Koci: > Hi, > > since JSF 2.0 JSP support and are deprecated. Since 1.2 > same for javax.faces.el. > > > For performace reasons I suggest find a way how disable following: > > 1) Managed Bean support (o.a.m.SUPPORT_MANAGED_BEANS=false) > > if this flag is false, myfaces will not install ManagedBeanResolver and > will skip managed beans processing during startup (or outputs a warning > if managed bean is found and this flag is false). > > > 2) VariableResolver and PropertyResolver > (o.a.m.SUPPORT_JAVAX_FACES_EL=false) > > myfaces will not install VariableResolverImpl and > VariableResolverToELResolver and PropertyResolver implementations > > > 3) (o.a.m.SUPPORT_JSP=false) > if this flag is false myfaces will not install FacesCompositeELResolver > and will skip JSP initializer during startup. FacesCompositeELResolver > is related to VariableResolverImpl, maybe this can be one paramater. > > Those are only suggestions. I did some initial profiling and when "old" > technogies are disabled myfaces gain significant performance boost, > especially in render response phase. > > Another solution for ELResolvers only is use of comparator but this does > not allow skip certain parts of code. > > WDYT? > > Kočičák > > > > > > > > > > > > > > > > >