-
Notifications
You must be signed in to change notification settings - Fork 3k
Improve getResources performance #9406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve getResources performance #9406
Conversation
|
Previous failures should be fixed by the changes in JarClassPathElement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
c5b676f to
dc0e46f
Compare
|
Assuming CI passes, @gsmet we definitely want this one in for 1.5 |
|
Hm... Weird errors: |
dc0e46f to
1df7998
Compare
|
My opinion on this one is that it either goes into CR1 or it gets moved to 1.6. So let's try to merge it in CR1. |
| ClassPathElement[] providers = state.loadableResources.get(name); | ||
| if (providers != null) { | ||
| for (ClassPathElement element : providers) { | ||
| resources.add(element.getResource(nm).getUrl()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried out my application with this pr. I get an NPE at this line now.
Drools 6.5.0.Final loads some resources.
Value of nm: /META-INF/drools.default.packagebuilder.conf
Value of name: META-INF/drools.default.packagebuilder.conf
element.getResource(nm) returns null.
element.getResource(name) returns a value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stuartwdouglas I let you check that comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a typo, some places were using the original name that did not have the / removed
1df7998 to
255882d
Compare
255882d to
bd1902f
Compare
No description provided.