Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 22C7CC946 for ; Wed, 11 Jul 2012 13:02:37 +0000 (UTC) Received: (qmail 97257 invoked by uid 500); 11 Jul 2012 13:02:36 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 97111 invoked by uid 500); 11 Jul 2012 13:02:36 -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 97074 invoked by uid 99); 11 Jul 2012 13:02:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2012 13:02:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 14AC514285A for ; Wed, 11 Jul 2012 13:02:35 +0000 (UTC) Date: Wed, 11 Jul 2012 13:02:35 +0000 (UTC) From: "Mark Struberg (JIRA)" To: dev@myfaces.apache.org Message-ID: <61014810.34991.1342011755086.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1843801179.34686.1342004614783.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (EXTCDI-298) [perf] reduce overhead in ClassUtils MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/EXTCDI-298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13411454#comment-13411454 ] Mark Struberg commented on EXTCDI-298: -------------------------------------- Can you please test now? I've at least removed the doPrivileged for you. It will now only get executed if a SecurityManager is present. For fixing the loadClassForName I would need a stacktrace. And the number of times this gets called. A cache as you did it is not possible since "org.mypackage.MyClass" might be different for WebAppA and a WebAppB... > [perf] reduce overhead in ClassUtils > ------------------------------------ > > Key: EXTCDI-298 > URL: https://issues.apache.org/jira/browse/EXTCDI-298 > Project: MyFaces CODI > Issue Type: Improvement > Reporter: Thomas Andraschko > Assignee: Mark Struberg > Attachments: EXTCDI-298.patch > > > As discussed with gerhard, i removed the #doPriviliged which improved the method execution duration from 50ms to 0ms (30.000 invocations / request) > I also added a class cache which improves loadClassForName from 62ms to 6ms for 9600 invocations. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira