I think Andreas Andreakis wrote: > > Maybe this could be an optimization in future Jess versions ? I mean why > are you doing pattern matching to rules of Modules, which are not > focused =?
In most cases it would be a *deoptimization*, because the total amount of work done would go *up*. Remember that the Rete network is shared among all rules; if two rules in different modules have some conditions in common, in the current implementation, the matching will only be done once, and both rules will benefit. If we did as you proposed we'd have to do the work twice. Also note that if we deferred pattern matching until a module had focus, then changing focus could be a slow and expensive operation; it's fast now. Finally, there would have to be some potentially complicated exceptions for dealing with auto-focus rules, since their pattern-matching behavior would have to be different. All in all, I think things are better the way they are! --------------------------------------------------------- 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] --------------------------------------------------------------------
