Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 73133 invoked from network); 29 Jul 2010 10:21:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Jul 2010 10:21:46 -0000 Received: (qmail 37376 invoked by uid 500); 29 Jul 2010 10:21:46 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 36734 invoked by uid 500); 29 Jul 2010 10:21: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 36719 invoked by uid 99); 29 Jul 2010 10:21:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jul 2010 10:21:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jul 2010 10:21:39 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6TALHa2028851 for ; Thu, 29 Jul 2010 10:21:17 GMT Message-ID: <29346067.65241280398877725.JavaMail.jira@thor> Date: Thu, 29 Jul 2010 06:21:17 -0400 (EDT) From: "Werner Punz (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Created: (MYFACES-2846) jsf.js: performance improvement by eval call and exists call reduction MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org jsf.js: performance improvement by eval call and exists call reduction ---------------------------------------------------------------------- Key: MYFACES-2846 URL: https://issues.apache.org/jira/browse/MYFACES-2846 Project: MyFaces Core Issue Type: Improvement Affects Versions: 2.0.1 Reporter: Werner Punz While most of the performance now is spend on send and dom replaceElement without too much possibilities of further improvements on the client side there, we still have speed optimization potential. Currently about 5-8% of the execution time is spent on evaling anonymous functions and within the exists function. We probably can reduce both calls to a big degree by eliminating exists in favor of undefined checks where it makes sense (mostly in the module binding part) and by trying to reduce generally the calls into anonymous functions (which comes also with the elimination of exists if called outside of _Runtime for instance in _Lang which delegates _Runtime. Note there is a 5% speed difference between dev and production due to the _ExtLang object which is only present in dev which is just an AOP wrapper around _Lang which adds the logging functions missing for prod. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.