[jboss-jira] [JBoss JIRA] (DROOLS-5227) Investigate performance degradation of fact type API usage in drools 7

Mario Fusco (Jira) issues at jboss.org
Tue Apr 7 13:30:33 EDT 2020


Mario Fusco created DROOLS-5227:
-----------------------------------

             Summary: Investigate performance degradation of fact type API usage in drools 7
                 Key: DROOLS-5227
                 URL: https://issues.redhat.com/browse/DROOLS-5227
             Project: Drools
          Issue Type: Task
            Reporter: Mario Fusco
            Assignee: Mario Fusco


In Drools 7 a big amount of time is spent to manage a NoSuchFieldExceptions in Class.getDeclaredField. This happens when client code tries to get/set a value of a non-existent field of a Fact Type: while in Drools 6 it immediately returns a null, in Drools 7 causes the execution of a recursive routine introspecting the class itself. Very likely this change behaviour has been introduced by this commit https://github.com/kiegroup/drools/commit/435f7ead86e20b361e25abd60f1b228b5816ede1



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list