The value of the testslot is a Java set, each element of the set is a name/value pair (Strings). Two are similar if for a given name, they have the same value (e.g. If the value of A_testslot is "Foo=1;Bar=2" and B_testslot = "Foo=1", they are similar but obviously not equal. However, "Foo=1;Bar=2" is not similar to "Foo=1;Bar=3"). I'm using the semi-colon to distinguish the members of the set.
-Russ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wolfgang Laun Sent: Friday, August 29, 2008 1:36 PM To: jess-users@sandia.gov Subject: Re: JESS: Performance question On 8/29/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > (MetricValue (name "foo") > (group "A") > (testslot ?A_testslot) > ) > (MetricValue (name "foo") > (group "B") > (testslot ?B_testslot&:(similar ?B_testslot > ?A_testslot) > ) > ) > (test (> ?A_val ?B_Val)) > > The performance of the second version is much slower, especially as > the number of facts increases. Is this just the overhead of my function call vs. > "equals". Does anyone have suggestions about possible restructuring > of the problem that might minimize the calls necessary?. What does (similar) do? How is it implemented? Wolfgang -------------------------------------------------------------------- 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] -------------------------------------------------------------------- -------------------------------------------------------------------- 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] --------------------------------------------------------------------