Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 78058 invoked from network); 18 Jan 2008 19:31:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jan 2008 19:31:55 -0000 Received: (qmail 51942 invoked by uid 500); 18 Jan 2008 19:31:44 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 51928 invoked by uid 500); 18 Jan 2008 19:31:44 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 51919 invoked by uid 99); 18 Jan 2008 19:31:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2008 11:31:44 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2008 19:31:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2A29771425E for ; Fri, 18 Jan 2008 11:31:34 -0800 (PST) Message-ID: <7383855.1200684694170.JavaMail.jira@brutus> Date: Fri, 18 Jan 2008 11:31:34 -0800 (PST) From: "Evgeniya Maenkova (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-5404) [classlib][luni][reflection][performance]Proxy instances can be optimized In-Reply-To: <10097600.1200683854629.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-5404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12560515#action_12560515 ] Evgeniya Maenkova commented on HARMONY-5404: -------------------------------------------- Currently each method of new instance of java.lang.reflect.Proxy, generated in package org.apache.harmony.luni.internal.reflect.ProxyClassFile, contains Class.forName and Class.getMethod calls. But this information is availably in static. This way we can avoid 2 calls in each method of Proxy. This approach implementation gives up to 3x boost on attached micro bench: on patched version: 8 456x456x true result: 12719 on clean version: 8 456x456x true result: 3890 > [classlib][luni][reflection][performance]Proxy instances can be optimized > ------------------------------------------------------------------------- > > Key: HARMONY-5404 > URL: https://issues.apache.org/jira/browse/HARMONY-5404 > Project: Harmony > Issue Type: Improvement > Components: Classlib > Reporter: Evgeniya Maenkova > Assignee: Alexey Petrenko > > methods of new Proxy instances can be optimized to avoid redudant Class.forName and getMethod call in each method -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.