Optimizing with the optimize method
The optimize method automatically optimizes ruleset execution in RetePlus mode, then locks the optimized ruleset.
The IlrRuleset.optimize method provides automatic optimization of the ruleset in RetePlus execution mode. After the optimization step, the ruleset is locked.
This method works only if no rule engine is attached to the ruleset before optimization starts; otherwise, an IllegalArgumentException is raised.
After the ruleset is locked, it is no longer possible to call the modification methods of the ruleset, such as IlrRuleset.parseStream. An IlrRulesetLockedException instance is raised if these methods are called on a locked ruleset.