harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Strigun (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-647) [drlvm] performance improvement for String class
Date Fri, 23 Jun 2006 12:10:29 GMT
[drlvm] performance improvement for String class
------------------------------------------------

         Key: HARMONY-647
         URL: http://issues.apache.org/jira/browse/HARMONY-647
     Project: Harmony
        Type: Improvement

  Components: VM  
    Reporter: Vladimir Strigun
    Priority: Minor


I'd like to suggest performance improvement for String class. Attached patch is very simple
and covers the following issues:
- Additional check in String.equals(). It returns true in case if we compare the same strings.

- Deleted temporary variable sum in String.hashCode() 
- Added workaround for charset ISO-8859-1 in String.getBytes() to avoid usage of java.nio


I've execute DaCapo benchmark with the fix gives about 7% boost for Dacapo:fop bench and don't
degradate on other benchmarks. Values are in milliseconds:
Build 	        Dacapo:fop Dacapo:hsqldb Dacapo:xalan Dacapo:chart
drlvm-original  1287.076   12706.837     1933.424     16283.142
drlvm-fixed 	1186.912   12471.263     1914.366     15961.693



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


Mime
View raw message