Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-2065

Performance benefit using StringBuilder instead of StringBuffer in org.drools.util.StringUtils

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    Description

      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)'

      Attachments

        Activity

          People

            mproctor@redhat.com Mark Proctor
            jeffja_jira Jeff Adams (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty