[
https://issues.apache.org/jira/browse/OWB-1342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Andraschko resolved OWB-1342.
------------------------------------
Resolution: Fixed
> 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
> Fix For: 2.0.18
>
>
> 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)