Run findbugs on your module to find performance issues that are easy to fix
by Geoffrey De Smet
Hi guys,
It's very easy to run findbugs on your module:
cd droolsjbpm/drools-core
mvn site -DskipTests
firefox target/site/findbugs.html
Most of the "bugs" on that webpage are ignorable, but there are a couple
of very interesting cases.
Just look for category PERFORMANCE.
For example in drools-core:
Method new
org.drools.io.impl.ResourceChangeScannerConfigurationImpl(Properties)
makes inefficient use of keySet iterator instead of entrySet iterator
This code:
public ResourceChangeScannerConfigurationImpl(Properties properties) {
for( Object key : properties.keySet() ) {
setProperty( (String) key, (String) properties.get( key ) );
}
}
should be the faster alternative:
public ResourceChangeScannerConfigurationImpl(Properties properties) {
for(Map.Entry<Object, Object> entry : properties.entrySet() ) {
setProperty( (String) entry.getKey(), (String)
entry.getValue());
}
}
--
With kind regards,
Geoffrey De Smet
13 years, 3 months
Re: [rules-dev] drools spatio-temporal
by Matteo Cusmai
Hi Mauricio,
i am Matteo non Marco.
Implementing EvaluatorDefinition interface, you are able to define new
operator to use in DRL language.
Regards,
Matteo.
---------- Forwarded message ----------
From: Mauricio Salatino <salaboy(a)gmail.com>
To: Rules Dev List <rules-dev(a)lists.jboss.org>
Date: Fri, 16 Sep 2011 09:32:54 -0300
Subject: Re: [rules-dev] drools spatio-temporal
Hi again Marco, yes I'm totally interested, but when you mention spacial
operators how are you coding that?
I've already mention to you that we have a couple of very simple accumulate
functions to do something similar.. but in the jBPM forum you mention that
you are creating a set of operators. I'm just interested to see how you are
creating those mechanisms.
Cheers
13 years, 3 months
drools spatio-temporal
by Matteo Cusmai
Hello at all,
i am new one of this group.
I'm not sure that this is the appropriate forum, if not, please help me to
find the right one.
I am developing an extension of Drools, in order to provide a lot of spatial
operator. This allow me to write spatio-temporal rules.
Do you think that spatial operators could be interesting for you? I would
like to add this capabilities to Drools.
Let me know your thinking.
Bye bye,
Matteo.
13 years, 3 months
5.3.0.CR1 New & Noteworthy
by Michael Anstis
I started the N&N for 5.3.0.CR1 this evening and pushed to master.
Feel free to add what you can :)
13 years, 3 months
5.3.x branch (and CR1 release) next Wednesday (12-SEPT)
by Geoffrey De Smet
Hi guys,
A fair warning: next Wednesday, we 'll create the 5.3.x branch.
From the 5.3.x branch we 'll release 5.3.0.CR1 and later also 5.3.0.Final.
This means that every commit pushed after it's branched on Wednesday,
will not be in the 5.3.0.Final release,
unless you backport it to the 5.3.x branch.
Note that if it's a SOA bugfix, you 'll still want to backport it to the
5.2.x branch too.
--
With kind regards,
Geoffrey De Smet
13 years, 3 months
Resource getName getDescription
by Mark Proctor
Shoudn't name and description be on InternalResource, not on Resource?
I think it's time to put a restriction on changes to "-api". Feel free
to change core/compiler etc, but if you want to change -api we'll need
to propose it here.
Mark
13 years, 3 months