Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A337E4597 for ; Fri, 13 May 2011 22:45:27 +0000 (UTC) Received: (qmail 12541 invoked by uid 500); 13 May 2011 22:45:27 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 12448 invoked by uid 500); 13 May 2011 22:45:27 -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 12437 invoked by uid 99); 13 May 2011 22:45:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2011 22:45:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2011 22:45:26 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 58D188908F for ; Fri, 13 May 2011 22:44:47 +0000 (UTC) Date: Fri, 13 May 2011 22:44:47 +0000 (UTC) From: "Simone Tripodi (JIRA)" To: issues@commons.apache.org Message-ID: <205085176.11815.1305326687360.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (OGNL-12) org.apache.commons.ognl.internal.ClassCacheImpl is not efficient MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 org.apache.commons.ognl.internal.ClassCacheImpl is not efficient ---------------------------------------------------------------- Key: OGNL-12 URL: https://issues.apache.org/jira/browse/OGNL-12 Project: OGNL (Incubating) Issue Type: Improvement Reporter: Simone Tripodi I know that maybe we're speaking of a small amount of data, but ClassCacheImpl implementation based on array is not efficient at all; both {{get(Class)}} and {{put(Class, Object)}} methods have complexity O(n). Using a Map we can reduce the complexity to O(1) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira