Performance improvement for ReturnValue
---------------------------------------
Key: JBRULES-731
URL:
http://jira.jboss.com/jira/browse/JBRULES-731
Project: JBoss Rules
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Reporter: Mark Proctor
Assigned To: Mark Proctor
Fix For: 3.1-m2
I noticed that ReturnValue for the java dialect is suboptimal. The template has the
following:
return org.drools.base.FieldFactory.getFieldValue( <text> );
This does a series of if/else if checks to find the wrapper. Yet we know what it's
being compared against, we really should have that FieldValue factory fached, to avoid the
series of checks.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira