I think Tobias Hilka wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
>
> (assert (WORKER::wheat-close ?worker ?wheat ?wheatPos ?distance))
Ordered facts like this lead to slower matching and higher memory
consumption than unordered facts (i.e., facts with named slots.)
Multislots in general have the same effect compared to single slots.
> ?wheat <- (MAIN::wheat (position ?wheatPos&:(neq ?workerPos ?wheatPos))
> (OBJECT ?wheatObj))
Don't use function calls when you can do direct matching. This doesn't
effect performance, but it effects speed. Instead of the above, write
?wheat <- (MAIN::wheat (position ?wheatPos&~?workerPos) (OBJECT
?wheatObj))
>
> Is there anything wrong with this kind of rules or do you have any other
> suggestions on speeding up my system (and lowering the memory comsumption).
I assume you've read the manual and so already have played with
set-node-index-hash (both the function and the defrule declaration?)
These can have a dramatic constant-factor effect on memory usage.
---------------------------------------------------------
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]
--------------------------------------------------------------------