[rules-users] Why would addPackageFromDrl() takes more time even for a small drl file with one rule

Raja.Bobbala at sanofi-aventis.com Raja.Bobbala at sanofi-aventis.com
Wed Jan 24 10:33:44 EST 2007


I have the following code to add a drl to the package.It takes 2-3 secs to load even a small drl file with one rule.
Appreciate if anyone in the group throw some light on this.

PackageBuilder builder = new PackageBuilder();
Date startTime = new Date();
SimpleDateFormat formatter = new SimpleDateFormat("H:mm:ss:SSS");
String datenewformat = formatter.format(startTime);
System.out.println("Before Add Package from DRL-->" + datenewformat);
builder.addPackageFromDrl( new InputStreamReader( getClass().getResourceAsStream( "/test.drl" )));

Date endTime = new Date();
SimpleDateFormat formatter1 = new SimpleDateFormat("H:mm:ss:SSS");
String datenewformat1 = formatter1.format(endTime);
System.out.println("After Add Package from DRL-->" + datenewformat1);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070124/b8e252c7/attachment.html 


More information about the rules-users mailing list