mdproctor opened a new issue, #6716: URL: https://github.com/apache/incubator-kie-drools/issues/6716
## Summary `ScopeEvaluator.invokeFilter()` performs `Arrays.stream(pred.getClass().getMethods()).filter(...)` on every invocation inside `scopeHasMatch()`. For not()/exists() scopes evaluated against large DataSources this is a hot-path cost — Method resolution should happen once. ## Fix approach Cache the resolved `java.lang.reflect.Method` in `ScopeDescriptor` at scope-descriptor construction time (or when the predicate is first stored). `invokeFilter` would then take the pre-resolved `Method` as a parameter. Refs #6712 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
