<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=804013219-02082007><FONT face=Arial
color=#0000ff size=2>Mark,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=804013219-02082007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=804013219-02082007><FONT face=Arial
color=#0000ff size=2>Thanks for the prompt response. I will certainly
create a simplified program to demonstrate this problem and open a
JIRA.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=804013219-02082007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=804013219-02082007><FONT face=Arial><FONT
color=#0000ff size=2>As for the "non-optimized test rule set", I meant that I
did not even using the new syntax in 4.0GA, such as "in" and "not in", when
converting IRL to DRL. I converted all the in conditions to concatenated
or's or "!=" for negations. All the rules also created without one
condition that has been showing greatly improved performance in JRules.
But Drools seems not needing it. The data set is exactly the
same.</FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=804013219-02082007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=804013219-02082007><FONT face=Arial
color=#0000ff size=2>By the way, I also like DRL a lot.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=804013219-02082007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=804013219-02082007><FONT face=Arial
color=#0000ff size=2>-Ming</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=804013219-02082007><FONT face=Arial
size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <B>On Behalf Of </B>Mark
Proctor<BR><B>Sent:</B> Thursday, August 02, 2007 2:06 PM<BR><B>To:</B> Rules
Users List<BR><B>Cc:</B> Shtarkman, Daniel<BR><B>Subject:</B> Re:
[rules-users] Why does Drools' RuleBase.addPackage() Behave
ThisWay?<BR></FONT><BR></DIV>
<DIV></DIV>Thanks for the feedback, glad it's working out faster for you. Btw
have you tried our sequentail mode, thats even faster, especially for large
data sets and where as JRule's sequential/fastpath modes limit the rule
langauge available to you, we still allow you access to the full language.
Also notice how we don't need to pool rule contexts like JRules, our single
rulebase can be shared amount working memory sessions, making the management
of sessions very light weight which simplifies your over all
infrastructure.<BR><BR>On the increasing times, that doesn't look good.
Probably a bad loop or cache somewhere. Could you make a self contained
project showing this behaviour and upload it as a jira, and we will track and
hopefully move the bottlebeck. Hopefully JProfiler can shed some
light.<BR><BR>Btw what do you mean by "non-optimized test rule set and data" -
just trying to understand so I can compare apples to
apples.<BR><BR>Mark<BR>Jin, Ming wrote:
<BLOCKQUOTE
cite=mid:E84FE257D840B34FA428A3C281A111440863CFDD@sgtulmsp03.Global.ad.sabre.com
type="cite">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: #606420; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: #606420; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<DIV><SPAN class=460024517-02082007><FONT face=Arial color=#0000ff size=2>I
am benchmarking Drools 4.0 and received excellent results in rule
execution. With our non-optimized test rule set and data, Drools
out performed ILOG/JRules by quite a bit. Congratulations to Drools'
team for a job well done.</FONT></SPAN></DIV>
<DIV><SPAN class=460024517-02082007></SPAN> </DIV>
<DIV><SPAN class=460024517-02082007><FONT face=Arial color=#0000ff size=2>I
encountered a strange behavior when trying to test the performance of rule
registration, meaning to add Package's to a new instance of
RuleBase. I ran the same test 5 times in a sequence, and the RuleBase
instance was discarded right away. The test ran with different
different number of packages, 20, 50, 100, and 200. The results
are as the followings:</FONT></SPAN></DIV>
<DIV><SPAN class=460024517-02082007></SPAN> </DIV>
<DIV><SPAN class=460024517-02082007><FONT face=Arial color=#0000ff
size=2>Added 20 packages to rulebase in 0:00:0.15<BR>Added 20 packages to
rulebase in 0:00:0.21<BR>Added 20 packages to rulebase in 0:00:0.21<BR>Added
20 packages to rulebase in 0:00:0.301<BR>Added 20 packages to rulebase in
0:00:0.18<BR>Added 20 packages to rulebase 5 times in
0:00:1.051</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=460024517-02082007><FONT face=Arial color=#0000ff
size=2>Added 50 packages to rulebase in 0:00:0.17<BR>Added 50 packages to
rulebase in 0:00:1.422<BR>Added 50 packages to rulebase in
0:00:1.252<BR>Added 50 packages to rulebase in 0:00:1.322<BR>Added 50
packages to rulebase in 0:00:1.331<BR>Added 50 packages to rulebase 5 times
in 0:00:5.497</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=460024517-02082007><FONT face=Arial color=#0000ff
size=2>Added 100 packages to rulebase in 0:00:0.19<BR>Added 100 packages to
rulebase in 0:00:5.278<BR>Added 100 packages to rulebase in
0:00:5.297<BR>Added 100 packages to rulebase in 0:00:5.228<BR>Added 100
packages to rulebase in 0:00:5.327<BR>Added 100 packages to rulebase 5 times
in 0:00:21.32</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=460024517-02082007><FONT face=Arial color=#0000ff
size=2>Added 200 packages to rulebase in 0:00:0.22<BR>Added 200 packages to
rulebase in 0:00:21.691<BR>Added 200 packages to rulebase in
0:00:21.481<BR>Added 200 packages to rulebase in 0:00:21.642<BR>Added 200
packages to rulebase in 0:00:21.341<BR>Added 200 packages to rulebase 5
times in 0:01:26.385</FONT></SPAN></DIV>
<DIV><SPAN class=460024517-02082007></SPAN> </DIV>
<DIV><SPAN class=460024517-02082007><FONT face=Arial color=#0000ff size=2>As
you can see, the timing of creating first RuleBase instance is always good,
while the subsequent one's were very bad. Is there an attribute I
could adjust in configuration to improve the performance for this
scenario? Please advise if there is other alternatives. I would
be glad to provide details if needed.</FONT></SPAN></DIV>
<DIV><SPAN class=460024517-02082007></SPAN> </DIV>
<DIV><SPAN class=460024517-02082007><FONT face=Arial color=#0000ff
size=2>Your help is greatly appreciated!</FONT></SPAN></DIV>
<DIV><SPAN class=460024517-02082007><FONT face=Arial color=#0000ff
size=2>-Ming</FONT></SPAN></DIV><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
rules-users mailing list
<A class=moz-txt-link-abbreviated href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A>
<A class=moz-txt-link-freetext href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A>
</PRE></BLOCKQUOTE><BR></BLOCKQUOTE></BODY></HTML>