<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Is &#8216;matches&#8217; operator
optimized?<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>Vlad&nbsp;</span><o:p></o:p></font></p>

</div>

<div>

<div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
color:windowtext'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal style='margin-left:36.0pt'><b><font size=2 color=black
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:windowtext;
font-weight:bold'>From:</span></font></b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext'> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Mark Proctor<br>
<b><span style='font-weight:bold'>Sent:</span></b> 12 March 2007 14:53<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Rules
 Users List</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [rules-users] Rete
diagram legend - what do all the colors me an?...</span></font><font
color=black><span style='color:windowtext'><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal style='margin-left:36.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>not really, all I can say
is try and work with flat models and '==' operators for performance - we
currently don't optimise != or number ranges. Avoid eval, predicate and return
value unless you really need them. Keep your consequences short and avoid flow
logic in them, i.e. 'if'/'switch ' statements.<br>
<br>
Mark<br>
Olenin, Vladimir (MOH) wrote: <o:p></o:p></span></font></p>

<div>

<p class=MsoNormal style='margin-left:36.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'><u1:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"><!--[if gte mso 9]><xml>
  <u1:shapedefaults u2:ext="edit" spidmax="1026"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
  <u1:shapelayout u3:ext="edit">
   <u1:idmap u3:ext="edit" data="1"/>
  </u1:shapelayout>
</xml><![endif]--></u1:SmartTagType>Ok, found the descriptions &#8211; for
anyone interested, you need to switch into &#8216;JBoss Rules&#8217;
prospective and open &#8216;Properties&#8217; tab. This way whenever you select
a node, information about the node would be displayed there (Properties tab
won&#8217;t get activated automatically).<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'><u1:p>&nbsp;</u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>Mark,
any general hints on correlations between diagram &#8216;look&#8217; &amp;
performance implications? (eg, &#8220;the more &#8216;alpha&#8217; nodes, the
worse/the better is performance&#8221;, &#8220;the more connections to the
node, the ____ is performance&#8221;, etc)<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'><u1:p>&nbsp;</u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>Thanks<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'><u1:p>&nbsp;</u1:p></span></font><o:p></o:p></p>

<div style='margin-left:36.0pt'>

<div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'><font
size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;
color:windowtext'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

</div>

<p class=MsoNormal style='margin-left:72.0pt'><b><font size=2 color=black
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:windowtext;
font-weight:bold'>From:</span></font></b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext'> <a
href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>
[<a href="mailto:rules-users-bounces@lists.jboss.org">mailto:rules-users-bounces@lists.jboss.org</a>]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Mark Proctor<br>
<b><span style='font-weight:bold'>Sent:</span></b> 09 March 2007 18:18<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName u4:st="on"><st1:PersonName
w:st="on">Rules Users List</st1:PersonName></st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [rules-users] Rete
diagram legend - what do all the colors mean?...</span></font><o:p></o:p></p>

</div>

<u1:p></u1:p>

<p class=MsoNormal style='margin-left:72.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><u1:p>&nbsp;</u1:p><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:72.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>yes if you understand the
rete diagram you can can help it with understanding performance. If you click
on a node it tells you the type. Which are roughly<br>
root, object type node, alpha node, join node, not node, exists node, eval node
and terminal node. Can't remenber which has which colour, but you should be
able to figure it out, we discuss the node types briefly in the manual.<br>
<br>
Mark<br>
Olenin, Vladimir (MOH) wrote: <u1:p></u1:p><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:72.0pt'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>Hi,<u5:p></u5:p></span></font><u1:p></u1:p><o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'><u5:p>&nbsp;</u5:p></span></font><u1:p></u1:p><o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>I was trying to
make some sense out of Rete Diagram for my rules (DROOLS 3.1M), and one of the
questions I have is what all these colors mean? There are red, blue, yellow,
green, orange, white, cyan and black circles&#8230;. I might be wrong, but I
think this should mean something!<u5:p></u5:p></span></font><u1:p></u1:p><o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'><u5:p>&nbsp;</u5:p></span></font><u1:p></u1:p><o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>Also, I noticed
that by default the diagram is displayed in &#8216;layers&#8217; of dots. In my
case I have 7 layers, the top one being the &#8216;root&#8217; I assume (single
white circle). The &#8216;widest&#8217; layer is the middle one &#8211; the
forth layer. So, generally the diagram has a diamond shape. I wonder if one can
use this kind of visual information to make a rough estimation/assumption on
how efficient his rules/constraints are, some hints into optimization,
etc&#8230;.<u5:p></u5:p></span></font><u1:p></u1:p><o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'><u5:p>&nbsp;</u5:p></span></font><u1:p></u1:p><o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'><u5:p>&nbsp;</u5:p></span></font><u1:p></u1:p><o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>Thanks,<u5:p></u5:p></span></font><u1:p></u1:p><o:p></o:p></p>

<p class=MsoNormal style='margin-left:72.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><u5:p>&nbsp;</u5:p><u1:p></u1:p><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:72.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>Vlad&nbsp;<u1:p></u1:p><o:p></o:p></span><u5:p></u5:p></font></p>

<p class=MsoNormal style='margin-left:72.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><u5:p>&nbsp;</u5:p><u1:p></u1:p><o:p></o:p></span></font></p>

<pre style='margin-left:72.0pt' wrap=""><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt'><u1:p>&nbsp;</u1:p><o:p></o:p></span></font></pre><pre
style='margin-left:72.0pt;text-align:center'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre
style='margin-left:72.0pt;text-align:center'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre
style='margin-left:72.0pt;text-align:center'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt'>

<hr size=4 width="90%" align=center>

</span></font></pre><pre style='margin-left:72.0pt;text-align:center'><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre
style='margin-left:72.0pt;text-align:center'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre
style='margin-left:72.0pt'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><u1:p>&nbsp;</u1:p><o:p></o:p></span></font></pre><pre
style='margin-left:72.0pt'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>_______________________________________________<u1:p></u1:p><o:p></o:p></span></font></pre><pre
style='margin-left:72.0pt'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>rules-users mailing list<u1:p></u1:p><o:p></o:p></span></font></pre><pre
style='margin-left:72.0pt'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><a href="mailto:rules-users@lists.jboss.org"
moz-do-not-send=true>rules-users@lists.jboss.org</a><u1:p></u1:p><o:p></o:p></span></font></pre><pre
style='margin-left:72.0pt'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><a
href="https://lists.jboss.org/mailman/listinfo/rules-users"
moz-do-not-send=true>https://lists.jboss.org/mailman/listinfo/rules-users</a><u1:p></u1:p><o:p></o:p></span></font></pre><pre
style='margin-left:72.0pt'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>&nbsp; <u1:p></u1:p><o:p></o:p></span></font></pre>

<p class=MsoNormal style='margin-left:72.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><u1:p>&nbsp;</u1:p><o:p></o:p></span></font></p>

<pre style='margin-left:36.0pt' wrap=""><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre
style='margin-left:36.0pt;text-align:center'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt'>

<hr size=4 width="90%" align=center>

</span></font></pre><pre style='margin-left:36.0pt'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre
style='margin-left:36.0pt'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>_______________________________________________<o:p></o:p></span></font></pre><pre
style='margin-left:36.0pt'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>rules-users mailing list<o:p></o:p></span></font></pre><pre
style='margin-left:36.0pt'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><o:p></o:p></span></font></pre><pre
style='margin-left:36.0pt'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><a
href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><o:p></o:p></span></font></pre><pre
style='margin-left:36.0pt'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>&nbsp; <o:p></o:p></span></font></pre>

<p class=MsoNormal style='margin-left:36.0pt'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>