[jboss-jira] [JBoss JIRA] (DROOLS-888) Drools 6.2 performance issue when using @ sign in drl file

Mario Fusco (JIRA) issues at jboss.org
Wed Aug 19 06:42:26 EDT 2015


    [ https://issues.jboss.org/browse/DROOLS-888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13099744#comment-13099744 ] 

Mario Fusco commented on DROOLS-888:
------------------------------------

There can be a slow down (but I'm surprised of a 2x perf degradation) caused by the enhancement I developed for the linked ticket. In particular now drools always tries to map the annotations in your drl with actual Java annotation, i.e. if you have @FixedBy in a rule it tries to look for a java annotation class with the same name. I guess that, not having such a class in your code base, drools keeps searching for it every time it meets one, so very likely adding such annotation class could largely mitigate this problem.

That said I want to investigate the perf degradation you reported and fix it for what is possible (probably adding a cache of non existing annotation will be enough). It will save me some time if you could attach to this ticket a simple project reproducing this issue.

Thanks,
Mario

> Drools 6.2 performance issue when using @ sign in drl file
> ----------------------------------------------------------
>
>                 Key: DROOLS-888
>                 URL: https://issues.jboss.org/browse/DROOLS-888
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 6.2.0.Final
>         Environment: jdk1.7.0_25
>            Reporter: Thomas Leung
>            Assignee: Mario Fusco
>
> Our project has a need to use annotation (@) in drl files as a meta-data for each rule. E.g. 
> rule "TEST RULE"
> @ID('ABC001')
> @FixedBy('Thomas')
> when
>    ...
> While migrating from 6.1.0.Final to 6.2.0.Final, we noticed that there is a significant increase in the building time of the KieBase. The time needed for 6.2.0 is more than twice the 6.1.0. As we have quite a lot of KieBase configured, it is not acceptable.
> After some experiements, we found that it is due to the annotations in drl files. Are there any difference in the internal implementation of KieBuilder between that 2 minor versions which will cause that performance issue? If yes, may I know if it possible to fix it?
> Thanks & Regards,
> Thomas Leung



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list