[rules-users] Serializing knowledgepackages - execution behaviour

FrankVhh frank.vanhoenshoven at agserv.eu
Wed Jul 13 08:46:43 EDT 2011


Hi all,

After playing with serializing knowledgepackages a bit, I stumbled upon some
behaviour which I cannot explain at the moment. I can only hope someone can
deliver a hint of insight into this.

The situation:
Creating and executing a rule engine with the very same rules. In the first
attempt, rules are serialized first. Note that only the rules are
serialized, not the engine. 
In the second attempt, the "normal" (= "as in the hello world sample")
procedure is used to feed the rules to the engine. 

I noticed some performance differences at execution time, which amaze me a
bit, as I can't see a reason why execution would differ...

When loading the serialized rules, rule execution is slightly slower and,
more important, there are some glitches in the performance (execution times
over 10 times slower than average execution). Unserialized rules run much
smoother and much more consistent.

Does anyone have any explanation for this? I am very interested to find out.

Thanks a lot.

Regards,
Frank

--
View this message in context: http://drools.46999.n3.nabble.com/Serializing-knowledgepackages-execution-behaviour-tp3165804p3165804.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list