Re: [rules-users] Max packages

2008-08-13 Thread Mark Proctor
Joe White wrote: Can someone help me understand the relationship between the number of Packages in a single RuleBase and PermGen memory consumption? I have a test that generates 200 rules and then adds those rules as different packages to a single rule base. PermGen consumption grows near

[rules-users] Java code Vs Drools

2008-08-13 Thread Harsh Jetly
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 the arraylist and

Re: [rules-users] Java code Vs Drools

2008-08-13 Thread Mark Proctor
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

RE: [rules-users] Java code Vs Drools

2008-08-13 Thread Corneil du Plessis
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

RE: [rules-users] Java code Vs Drools

2008-08-13 Thread Anstis, Michael (M.)
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

Re: [rules-users] Java code Vs Drools

2008-08-13 Thread Mark Proctor
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

RE: [rules-users] Java code Vs Drools

2008-08-13 Thread Hehl, Thomas
While it's always important to keep an eye on performance while writing code, the things that really cost money are stability and maintainability. You write your software so it's easy to maintain and reliable and next week someone will build a faster processor to run it on. -Original

RE: [rules-users] Java code Vs Drools

2008-08-13 Thread Hehl, Thomas
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

RE: [rules-users] Java code Vs Drools

2008-08-13 Thread Hehl, Thomas
Sorry, I should have said for business software. Systems software requires a lot more performance tuning. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hehl, Thomas Sent: Wednesday, August 13, 2008 7:46 AM To: 'Rules Users List' Subject: RE:

RE: [rules-users] Java code Vs Drools

2008-08-13 Thread Corneil du Plessis
No HotSpot refers to the portion of the JVM that compiles java bytecode to native code and applies various optimisations over time depending on the frequency with which code is executed. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hehl, Thomas Sent:

RE: [rules-users] Java code Vs Drools

2008-08-13 Thread Hehl, Thomas
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

[rules-users] Drools 3.0.6 support for enum's on jdk 1.5 ?

2008-08-13 Thread Maxim Veksler
Hello list, I have a rule that generally speaking looks like this : rule ABC when $f : FilteringStateConnector($campaignId : campaignId) $campaign : Campaign(code == $campaignId ,$limitTypeEnum : limitTypeEnum, $limitByEventType : limitByEventType) // Check Budget limit

RE: [rules-users] Max packages

2008-08-13 Thread Joe White
Mark, thank you very much for your help, it is greatly appreciated. There are improvements we can make to generated code into a single class and use a switch statement to invoke the correct part, but we don't have time for that right now, so would need to come from the community. I would

[rules-users] Writing rules using terminology based expressions.

2008-08-13 Thread Shahim Essaid
Hi all, I would appreciate some advice on how to best use Drools and how to write rules in my situation. I am new to Drools so my following descriptions might not be very accurate or clear. I will be writing rules that compare SNOMED terminology expressions against similar expressions in