Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 58014 invoked from network); 7 May 2009 11:29:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 May 2009 11:29:55 -0000 Received: (qmail 87958 invoked by uid 500); 7 May 2009 11:29:55 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 87855 invoked by uid 500); 7 May 2009 11:29:54 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 87845 invoked by uid 99); 7 May 2009 11:29:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 11:29:54 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 11:29:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4E18A234C003 for ; Thu, 7 May 2009 04:29:30 -0700 (PDT) Message-ID: <1060105730.1241695770302.JavaMail.jira@brutus> Date: Thu, 7 May 2009 04:29:30 -0700 (PDT) From: "Henri Biestro (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (JEXL-54) Light performance enhancements 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 Light performance enhancements ------------------------------ Key: JEXL-54 URL: https://issues.apache.org/jira/browse/JEXL-54 Project: Commons JEXL Issue Type: Improvement Affects Versions: 1.1 Reporter: Henri Biestro Fix For: 2.0 The ClassMap.MethodCache uses String as key to methods; these keys are forged by concatenating the name of the method & the argument classes names (converted to their object equivalent for primitive types). Replacing the key scheme & using a dedicated class to implement the keys yields some performance improvement. (aka 3x faster to get from a map). The MethodMap uses an HashTable; by synchronizing MethodMap.{add,get} and synchronizing ClassMap.{get,put} on its MethodMap instance, it is possible to use a basic HashMap instead. There are various places where a StringBuffer is used when a StringBuilder will suffice. As a side note, there are a few places where the code readability can be improved by using strongly typed collections. As a small "missing" feature, exposing access to the Introspector from the Uberspector (Introspector getIntrospector()) allows to re-use JEXL for some lower level introspection needs. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.