On 29 July 2011 23:02, Ryan R. <span dir="ltr">&lt;<a href="mailto:ryanrolland@gmail.com">ryanrolland@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
As a follow up question, do you think Drools and Rules Engines in general<br>
are the way to go for operations that distort object field values one object<br>
at a time? Would an embedded scripting language better fit this usecase?<br>
<br></blockquote><div><br>The first Chapter of the &quot;Expert&quot; manual has the sections &quot;Why (not) to use a rule engine&quot;, and that&#39;s probably the best one can do for a remote diagnosis.<br><br> </div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I also did some additional benchmarking with virtually the same stateful<br>
session setup.<br>
<br>
The below plot shows execution time of the rules engine for Java POJO<br>
(static) and MessagePack (Dynamic) Messages from 1000 - 200K messages in<br>
step sizes of 1000 messages. I was surprised to see the discrete jumps of 1<br>
second in execution time. I was also surprised to see that on the low end<br>
execution time for a few thousand messages was 1 second? That seemed slow<br>
and why the discrete jumps?<br></blockquote><div><br>I&#39;d suspect that the 1 second for 1k is some basic initialization that&#39;s included in the measured interval. But I don&#39;t see how the time can remain constant over wide ranges. (I take it that you were timing the overall execution time for doing n*1000 messages.) <br>
<br>If MessagePack requires more memory than Pojo, the earlier jump to 2sec may be due to garbage collection.<br><br>How did you obtain these times?<br>-W<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
Sorry no label on plot:<br>
<br>
Y Axis is Exec time in seconds<br>
X Axis is Number of Messages (Step Size 1K messages)<br>
<br>
<a href="http://drools.46999.n3.nabble.com/file/n3210745/WithPayloadNoFieldRemoval.jpg" target="_blank">http://drools.46999.n3.nabble.com/file/n3210745/WithPayloadNoFieldRemoval.jpg</a><br>
<br>
Ryan R.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Stateful-vs-Stateless-Session-Performance-tp3208057p3210745.html" target="_blank">http://drools.46999.n3.nabble.com/Stateful-vs-Stateless-Session-Performance-tp3208057p3210745.html</a><br>

</font><div><div></div><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>