I think Sebastian Varges wrote:
> 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?
It's actually a problem with the algorithm being used. It does more
work than necessary, in an amount that scales nonlineraly with the
length of the multifield.
One workaround (an ugly one, but effective in your case) would be to
not match the multifield on the rule LHS at all, but instead use
Fact.getSlotValue() to get ahold of the slot value on the rule RHS. If
you need more specific instructions for this let me know.
>
>
> > 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:
---------------------------------------------------------
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]
---------------------------------------------------------------------