You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Evgeniya Maenkova (JIRA)" <ji...@apache.org> on 2008/01/18 20:31:34 UTC
[jira] Commented: (HARMONY-5404)
[classlib][luni][reflection][performance]Proxy instances can be optimized
[ 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.