]
Mario Fusco updated DROOLS-5108:
--------------------------------
Sprint: 2020 Week 07-09 (from Feb 10)
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}