Hi Ernest,
Thanks for the immediate reply. Indeed the last thing to test that
came to my mind was the new multislot. Single uses of additional
variables on rule LHSs shouldn't cause performance problems. (I had
the impression that the Java garbage collection was bringing
performance down but that might be wrong.) Do you think adding a dummy
slot or eliminating an existing one could be a hack to circumvent the
problem for now?
Many thanks
-- Sebastian
PS: I'm sending this to jess-users too now since it might affect other
people too.
>>>>> In article <[EMAIL PROTECTED]>,
>[EMAIL PROTECTED] (friedman_hill ernest j) writes:
> N.B. You send this to owner-jess-users, which is the address for
> mailing-list errors. Luckily I run the list myself, so I saw this. In
> the future please use just [EMAIL PROTECTED] Thanks.
> Anyway, if you're only using one variable to match a whole multifield,
> this shouldn't be causing any performance problems at all. I just did
> a little detective work and something very fishy is indeed going on in
> recent versions of Jess in this area. I will get back to you soon with
> more info and probably a patch.
> I think Sebastian Varges wrote:
>> Hi all,
>>
>> I noticed a painful decrease in performance of my Jess code, eg from 1
>> to 4 or 5 minutes, as I added a further multislot to my unordered
>> facts. I'm collecting the values of these new slots in variables on
>> the rule LHSs and store them in newly asserted facts on the RHS. It
>> looks something like:
>>
>> (defrule ...
>>
>> (fact ... (terms $?t1))
>> (fact ... (terms $?t2))
>>
>> =>
>>
>> (assert (fact .... (terms $?t1 $?t2))))
>>
>>
>> My 'fact's have 8 slots but just the 'terms' slot is new. Is it possible
>> that because of the use of variables, the join network is getting more
>> complicated here? In fact, I'm only interested in catching the values
>> of the 'terms' slot but do never require variable sharing. Why does
>> performance suffer so much? And how to get around the problem?
>>
>>
>> Thanks in advance for any assistence
>>
>> -- Sebastian
>>
> ---------------------------------------------------------
> 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]
---------------------------------------------------------------------