Ravi M created DROOLS-5108:
------------------------------
Summary: 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
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)