I think Srini wrote:
> If ceratin variables are being across defrules, is it a good idea to
> define them as defglobal rather than asserting them when a rule is
> fired? To get an idea there are 100's of these variables. Will there
> be any performace or memory issues if they are defined as defglobal's
> as opposed to asserting in defrule?
> 

Note that when a defglobal changes, rules that matched based on an
earlier value aren't re-evaluated, so the behavior of your two
alternatives would be quite different. You therefore have to choose
based on what the application needs to do, rather than on
performance. I don't think you can make any general statement about
which would perform better -- it depends on what the rules look like. 

People routinely write Jess programs with thousands or tens of
thousands of facts. Hundreds is not a problem.



---------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to