Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 64277 invoked from network); 16 Mar 2011 10:29:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Mar 2011 10:29:53 -0000 Received: (qmail 84185 invoked by uid 500); 16 Mar 2011 10:29:53 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 84143 invoked by uid 500); 16 Mar 2011 10:29:53 -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 84136 invoked by uid 99); 16 Mar 2011 10:29:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2011 10:29:53 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of martin.kocicak.koci@gmail.com designates 209.85.161.53 as permitted sender) Received: from [209.85.161.53] (HELO mail-fx0-f53.google.com) (209.85.161.53) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2011 10:29:47 +0000 Received: by fxm11 with SMTP id 11so1559881fxm.12 for ; Wed, 16 Mar 2011 03:29:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=QLi7KDZb5KRdXryWDEmwyG3estLz0iwwIc05VEYxtiA=; b=K3ySh/G9PNMd9/D0zeh3Zv5e4Qvy9T4GtPWD6oWadjOHAO/YEffMUm9A/HMXFPOYXy CIpC8WPqo1MJiTgbE8PLoKuCuMXdmvXtxxGDrIfBVBJ/YJSvsBMvFmodkh3DLTul30x+ 6jW2Bi/wT9uMXIEvj1Db0tv6lLzkGjSeiYDUs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=V/rPQAAPx8tHUWf9xEV9NvAPXTgTt+f3FvXhOqq1mD1r/83pgvQJ7cZtKOq6HcN1YN FKsiAlxCQox6emf9twrKzfRZVUr4RXI53qHc6xLK/+eKEaAss5JOYfMyXLswEatjXtOJ Dm+5CieRBEWKUkoparxY3EmaH4umdnUPJRf4Q= Received: by 10.223.74.136 with SMTP id u8mr693173faj.136.1300271366301; Wed, 16 Mar 2011 03:29:26 -0700 (PDT) Received: from [192.168.1.121] (gate-uvoz.aura.cz [80.250.12.129]) by mx.google.com with ESMTPS id f15sm344281fax.10.2011.03.16.03.29.23 (version=SSLv3 cipher=OTHER); Wed, 16 Mar 2011 03:29:24 -0700 (PDT) Subject: [core] performance: ELResolvers filtering From: Martin Koci To: dev@myfaces.apache.org Content-Type: text/plain; charset="UTF-8" Date: Wed, 16 Mar 2011 11:29:15 +0100 Message-ID: <1300271355.5833.48.camel@markoc-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 8bit Hi, after few months I have time to do some performance optimalization for myfaces. This one is related to topic http://www.mail-archive.com/dev@myfaces.apache.org/msg49177.html Problem: how to disable ELResolver smartly? Adding a context-param for each is an overkill. But we have https://cwiki.apache.org/MYFACES/elresolver-ordering.html in codebase already. I propose to add new feature "ELResolver filtering" and new context-param: org.apache.myfaces.EL_RESOLVER_PREDICATE org.foo.bazz.ELResolverPredicate Filter is simple instance of org.apache.commons.collections.Predicate. For application where no ManagedBean(Resolver) is used or no Flash, user can simply return false from Predicate.evaluate and ELResolver won't be installed. WDYT? Regards, Kočičák