-
Change Request
-
Resolution: Unresolved
-
Minor
-
None
-
3.2.0alpha1
If action Type of calculation is And/Or action conditions are ordered by condition type to simplify expression evaluation. (Conditions of equal type are connected with OR, and (... OR ... OR ...) condition blocks are connected with AND.) Assuming that all conditions have equal chances of being true or false and request similar time to process it is good for performance to evaluate (... OR ... OR ...) blocks which contain less conditions. This way less conditions will be evaluated per expression.
Even more sophisticated improvement would be to gather statistics about chances of particular conditions to be true or false, about average condition evaluation time and sorting them accordingly to minimize mathematical expectation of expression evaluation time.