I think Henrik Rentz-Reichert wrote: > > Fortunately I'm using code generation for my purpose. But nevertheless: > are rules efficient to match very long combinations like that?
An "or" conditional element in Jess is compiled as if the two branches of the "or" were the left-hand-sides of two different rules. There are no special problems with efficiency, except that a rule like (defrule bad (or (a)(b)) (or (c)(d)) (or (e)(F)) ... can compile into a polynomial number of subrules and consume a great deal of memory. A single 5-way "or" presents no problems. --------------------------------------------------------- Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov -------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] --------------------------------------------------------------------
