I think you are right, I change my test case. Just call dispose() at the
first time.
and the performance is the same as call it every time.
What ever the dispose method do, It is really really impact the
performance...10 times
for (int i = 0; i < 100; i++) {
FactHandle handle = session.insert(me
Yes, the rule is very simple:
rule "message0to5"
when
msg: Case2Message (message0to5 =="qsdew")
then
msg.setPosition(1);
//System.out.println("postion is : 1" );
end
and some other rules like this.
We use this simple test to do the performance test.
Currently our project need to choose a rule en
ss.org [mailto:rules-users-
> boun...@lists.jboss.org] On Behalf Of tonytang
> Sent: 21 October 2011 11:29
> To: rules-users@lists.jboss.org
> Subject: Re: [rules-users] StatefulKnowledgeSession.dispose()
>
> But how to explain if I call dispose() in the loop the performance improve 10
But how to explain if I call dispose() in the loop the performance improve 10
times?
I already call the retract after every fireAllRules
I know we should not call dispose when we still need to use it.
--
View this message in context:
http://drools.46999.n3.nabble.com/StatefulKnowledgeSession-
essage-
> From: rules-users-boun...@lists.jboss.org [mailto:rules-users-
> boun...@lists.jboss.org] On Behalf Of tonytang
> Sent: 21 October 2011 10:55
> To: rules-users@lists.jboss.org
> Subject: Re: [rules-users] StatefulKnowledgeSession.dispose()
>
> B.T.W I use Drools 5.
B.T.W I use Drools 5.2 to test
--
View this message in context:
http://drools.46999.n3.nabble.com/StatefulKnowledgeSession-dispose-tp3440308p3440434.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
r