[jboss-jira] [JBoss JIRA] (DROOLS-5108) KieHelper.build is very slow on Drools 6.4.0.Final

Mario Fusco (Jira) issues at jboss.org
Wed Feb 26 03:27:02 EST 2020


     [ https://issues.redhat.com/browse/DROOLS-5108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco resolved DROOLS-5108.
---------------------------------
    Resolution: Out of Date


6.4.0.Final is 4 years old and of course we cannot provide community support for a so old release. Please try with a more recent one. Also claiming that X is "slow" while doing Y is not something workable. First of all you should provide a complete reproducer to allow us to benchmark and profile your specific situation. Second generically saying that it is "slow" isn't an objective measure. What are your expectations? What is a value acceptable for you and under which threshold you will stop considering this "slow"?

> KieHelper.build is very slow on Drools 6.4.0.Final
> --------------------------------------------------
>
>                 Key: DROOLS-5108
>                 URL: https://issues.redhat.com/browse/DROOLS-5108
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>            Reporter: Ravi M
>            Assignee: Mario Fusco
>            Priority: Major
>
> Tried build with 230 rules, it is taking nearly 10 seconds
> {code:java}
> org.kie.internal.utils.KieHelper kieHelper = new org.kie.internal.utils.KieHelper();
> kieHelper.setClassLoader(this.getClass().getClassLoader());
> kieHelper.addContent( drlContent, ResourceType.DRL );
> Results res = kieHelper.verify();
> if ( res.hasMessages( Message.Level.ERROR ) ) {
>     throw new DroolsCompilationException("Exception while compiling rule ");
> }
> if ( kbConf == null ) {
>     kbConf = KieServices.Factory.get().newKieBaseConfiguration();
> }
> kbConf.setOption( EqualityBehaviorOption.EQUALITY );
> KieBase kieBase = kieHelper.build( kbConf );
> {code}



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


More information about the jboss-jira mailing list