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(messageList.get(i));//
session.fireAllRules();
session.retract(handle);
if(i== 0){
session.dispose();
}
}
--
View this message in context:
http://drools.46999.n3.nabble.com/StatefulKnowledgeSession-dispose-tp3440...
Sent from the Drools: User forum mailing list archive at
Nabble.com.