[jboss-jira] [JBoss JIRA] Closed: (JBRULES-2065) Performance benefit using StringBuilder instead of StringBuffer in org.drools.util.StringUtils

Mark Proctor (JIRA) jira-events at lists.jboss.org
Wed May 13 21:35:46 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBRULES-2065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Proctor closed JBRULES-2065.
---------------------------------

    Fix Version/s: 5.0.0.GA
       Resolution: Done


Tthanks for the reminder, I did a big search and replace.

> Performance benefit using StringBuilder instead of StringBuffer in org.drools.util.StringUtils
> ----------------------------------------------------------------------------------------------
>
>                 Key: JBRULES-2065
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-2065
>             Project: JBoss Drools
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: drools-core
>    Affects Versions: 5.0.0.CR1
>         Environment: Any
>            Reporter: Jeff Adams
>            Assignee: Mark Proctor
>            Priority: Minor
>             Fix For: 5.0.0.GA
>
>
> Any chance we can get some performance improvement by replacing all uses of StringBuffer in org.drools.util.StringUtils with StringBuilder?
> If the minimum JVM version for drools is 1.5 StringBuilder is more efficient than StringBuffer for all the current uses in this code.
> From the javadocs:
> 'This class is designed for use as a drop-in replacement for StringBuffer in places where the string buffer was being used by a single thread (as is generally the case)'

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list