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

Thomas Andraschko commented on OWB-1342:
----------------------------------------

See https://github.com/apache/openwebbeans/pull/30

>  Improve startup performance 
> -----------------------------
>
>                 Key: OWB-1342
>                 URL: https://issues.apache.org/jira/browse/OWB-1342
>             Project: OpenWebBeans
>          Issue Type: Bug
>            Reporter: Thomas Andraschko
>            Priority: Major
>
> From the mailing list:
> Hi,
> I've seen a startup performance regression since OWB 2.0.17 and latest 
> snapshot. Our boot times have increased from 10 to about 14 seconds (only OWB 
> side). I can see that it always try to load the same package-info's in:
> while (true)
> {
>     try // not always existing but enables to go further when getPackage is 
> not available (graal)
>     {
>         pckge = classLoader.loadClass(previousPackage +
>                 (previousPackage.isEmpty() ? "" :".") + 
> "package-info").getPackage();
>         break;
>     }
>     catch (Exception e)
>     {
>         if (previousPackage.isEmpty())
>         {
>             pckge = null;
>             break;
>         }
>         packageVetoCache.put(previousPackage, false);
>         idx = previousPackage.lastIndexOf('.');
>         if (idx > 0)
>         {
>             previousPackage = previousPackage.substring(0, idx);
>         }
>         else
>         {
>             previousPackage = "";
>         }
>     }
> }
> I think that, in this loop, it should take into account the packageVetoCache 
> (whether it's true or false). Is it correct? Do you want a PR with this 
> correction?
> Best regards,
> Vicente.



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

Reply via email to