<div><br></div>   Greg,<div><br></div><div>   Can you check 5.1.1 instead? There was a problem in 5.1.0 that caused indexes to be disabled in certain situations and also a bug on &quot;exists&quot;. In general, we had the opposite feedback: reduction of memory usage and performance increase due to reduced GC overhead.</div>
<div><br></div><div>   Edson<br><br><div class="gmail_quote">2010/9/2 Greg Barton <span dir="ltr">&lt;<a href="mailto:greg_barton@yahoo.com">greg_barton@yahoo.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">I&#39;ve observed a sizable (25%) performance degradation between the 5.0.1 and 5.1.0 releases.  I&#39;ve attached a sample project that tests the performance of matching nested objects. (ANd compares direct reference matching and the performance pitfalls of &quot;from,&quot; but that&#39;s beside the current point.)<div>
<br></div><div>If you switch the pom.xml from using 5.0.1 to 5.1.0 for the drools dependencies you&#39;ll see 25% longer execution times on the tests. (mvn test)  </div><div><br></div><div>Here&#39;s the test output:</div>
<div><br></div><div>5.0.1</div><div><br></div><div><div>reference.drl Count: 2000</div><div>reference.drl Time: 267ms</div><div>reference.drl Time per element: 0.1335ms</div><div>BAR Duplicates: 780</div><div>FOO Duplicates: 880</div>
<div><br></div><div>reference.drl Count: 20000</div><div>reference.drl Time: 1249ms</div><div>reference.drl Time
 per element: 0.06245ms</div><div>BAR Duplicates: 7702</div><div>FOO Duplicates: 8040</div><div><br></div><div>from.drl Count: 200</div><div>from.drl Time: 1139ms</div><div>from.drl Time per element: 5.695ms</div><div>BAR Duplicates: 112</div>
<div>FOO Duplicates: 102</div><div><br></div><div>reference.drl Count: 200</div><div>reference.drl Time: 5ms</div><div>reference.drl Time per element: 0.025ms</div><div>BAR Duplicates: 86</div><div>FOO Duplicates: 60</div>
</div><div><br></div><div><br></div><div>5.1.0</div><div><br></div><div><div>reference.drl Count: 2000</div><div>reference.drl Time: 300ms</div><div>reference.drl Time per element: 0.15ms</div><div>BAR Duplicates: 788</div>
<div>FOO Duplicates: 820</div><div><br></div><div>reference.drl Count: 20000</div><div>reference.drl Time: 1564ms</div><div>reference.drl Time per element: 0.0782ms</div><div>BAR Duplicates: 8142</div><div>FOO Duplicates: 7960</div>
<div><br></div><div>from.drl Count:
 200</div><div>from.drl Time: 3543ms</div><div>from.drl Time per element: 17.715ms</div><div>BAR Duplicates: 68</div><div>FOO Duplicates: 90</div><div><br></div><div>reference.drl Count: 200</div><div>reference.drl Time: 13ms</div>
<div>reference.drl Time per element: 0.065ms</div><div>BAR Duplicates: 84</div><div>FOO Duplicates: 74</div></div><div><br></div><div><br></div><div>On the most taxing test (20k objects) 5.0.1 took 1249ms while 5.1.0 took 1564ms, and for larger tests the effect is more pronounced.  This is primarily a test of == on object references.</div>
<div><br></div><div>GreG</div></td></tr></tbody></table><br>

      <br>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>