You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/09/19 14:38:00 UTC

[jira] [Commented] (DELTASPIKE-1426) DeltaSpikeProxyFactory is slow on start

    [ https://issues.apache.org/jira/browse/DELTASPIKE-1426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17417343#comment-17417343 ] 

ASF subversion and git services commented on DELTASPIKE-1426:
-------------------------------------------------------------

Commit 8f18bfafbe208355a129650faaca6f40d246917e in deltaspike's branch refs/heads/master from Vladimir Dvorak
[ https://gitbox.apache.org/repos/asf?p=deltaspike.git;h=8f18bfa ]

DELTASPIKE-1426: Improve ProxyFactory performance on start

Class.getMethond(name, args) is expensive operation, that is used
intensively on start, when DeltaspikeProxyFactory generates new proxies.
It was used even for checks of public abstract
methods of proxy's base class, but this methods cannot be overridden.
This patch collects all leave methods and skips them in the check.

> DeltaSpikeProxyFactory is slow on start
> ---------------------------------------
>
>                 Key: DELTASPIKE-1426
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1426
>             Project: DeltaSpike
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>            Reporter: Vladimir Dvorak
>            Priority: Minor
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Deltaspike ProxyFactory start is slow. YourKit shows that the bottleneck is in the method "collectAllMethods". It intensively uses Class.getMethod(name, args), that is known by having poor performance. It seems, that number of calls could be distinctly decreased by skipping checks of public abstracts from proxy base class. In my case it improves OWB boot time by 7%.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)