There are indeed such rules; some are in the Jess manual (esp. the
Rete algorithm chapter) and FAQ. The most important rules are to be as
specific as possible in matching the earliest patterns on a LHS, and
to put the most-often-changing facts at the end of a LHS. 

In this case, probably you've accidentally coded up an n^2 (or worse)
search algorithm. Look in the FAQ for a specific example of this kind
of problem (http://herzberg.ca.sandia.gov/jess/FAQ.html#Q10) .


I think Skokan, Ladislav wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hello Jess users
> 
> I have tried to implement an expert system in Jess. I have generated about
> 3000 facts. The structure was like deffacts and here is one typical example:
> (deffact node35 (link "/abc") (name "abc") (super "/"))
> 
> All theses links are linked by the slot super and link. I have created
> defrule, that is listing and searching in the tree. I have also used my user
> function created in Java, to make regular expression when searching first
> fact. 
> Unfortunately the performance is very low. It is in minutes and I can accept
> response in few seconds only on PC with Linux and Sun's Java. 
> 
> Does anybody have similar experience ? Should I change Java runtime
> environment ? Is there any general performance rules for Jess ? 
> 
> Thanx,
> Laco Skokan.
> 
> 
> ---------------------------------------------------------------------
> 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]
> ---------------------------------------------------------------------
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
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