Harsh Jetly wrote:
I have been evaluating the rule engine (ie Drools 4.0.4). I have created an
application which has about 20 rules . I insert about 500 arraylists into
the working memory and each arraylist contains about 4 objects. The rule
engine picks the object that is the best match from
Make sure when you do performance testing that you run through enough
iterations so that the engine code benefits from HotSpot.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Harsh Jetly
Sent: 13 August 2008 11:03
To: rules-users@lists.jboss.org
Why not add your ArrayList items individually into WM?
rule P1 110
salience 1
activation-group 1
when
PriorityType( pricetype == 10,20,30,40,110 )
t:TlbObjectAttributeData( lngAttrTypeId == 110 )
then
result.add(t);
end
Would this not give
Corneil du Plessis wrote:
Make sure when you do performance testing that you run through enough
iterations so that the engine code benefits from HotSpot.
Something to be aware of is that there are still many optimsation we can
do to Drools. One of them is to take our interpretted Rete
-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: Wednesday, August 13, 2008 6:18 AM
To: Rules Users List
Subject: Re: [rules-users] Java code Vs Drools
Corneil du Plessis wrote:
Make sure when you do performance testing that you run through enough
iterations
What does this mean? Because of garbage collection?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Corneil du Plessis
Sent: Wednesday, August 13, 2008 5:42 AM
To: 'Rules Users List'
Subject: RE: [rules-users] Java code Vs Drools
Make sure when you do
it on.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: Wednesday, August 13, 2008 6:18 AM
To: Rules Users List
Subject: Re: [rules-users] Java code Vs Drools
Corneil du Plessis wrote:
Make sure when you do performance testing that you run
: 13 August 2008 13:47
To: 'Rules Users List'
Subject: RE: [rules-users] Java code Vs Drools
What does this mean? Because of garbage collection?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Corneil du Plessis
Sent: Wednesday, August 13, 2008 5:42 AM
Right, including optimization controls over garbage collection.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Corneil du Plessis
Sent: Wednesday, August 13, 2008 8:50 AM
To: 'Rules Users List'
Subject: RE: [rules-users] Java code Vs Drools
No HotSpot