Needs review
Project:
Optimizing Rules SoC 2010
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Jul 2010 at 16:08 UTC
Updated:
27 Jul 2010 at 06:51 UTC
In decision tree there may be different rules' conditions that have same type like
if "content type is page" is one condition.
and
if "content type is article" is second condition.
then any one of them would be TRUE. So we can put second condition in false tree of first condition because if first is FALSE only then second should be evaluated. What can be possible strategy for that?
Comments
Comment #1
Saubhagya commentedFor comparing same type of conditions I implemented a function (which needs review) isEqualType(). And for insertion I changed sortConditionArr() routine and accordingly insert(). Code is at http://github.com/saubhagya/rules_optimization/blob/master/rules_optimiz...