Improving the performance of the RetePlus execution mode
You can improve performance by avoiding certain operations
in the RetePlus execution mode.
RetePlus algorithm
RetePlus is a rule execution mode based on the Rete algorithm.
It relies on a working memory and agenda, and supports negative patterns,
object notification, and logical objects.
Optimizing the object model
You can decrease the cost of pattern matching by changing
the representation of the object model.
Optimizing with the optimize method
The optimize method automatically optimizes ruleset execution
in RetePlus mode, then locks the optimized ruleset.
Optimizing with a static agenda
When there is no rule with dynamic priority, you can set
the useStaticAgenda property to true to
improve performance by reducing the memory.
Activating dynamic rule compilation
Another way to improve RetePlus performance is to rely
on Just-In-Time compilation of the rule condition part to bytecode.