harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Zhou (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6056) [classlib][jit][opt][performance] Optimize heap allocations in String(String, int) constructor for JIT
Date Mon, 22 Dec 2008 04:13:44 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12658445#action_12658445
] 

Kevin Zhou commented on HARMONY-6056:
-------------------------------------

The private String(String, int) constructor is too heavy in its current implementation as
it uses String.valueOf(int), which in turn uses Integer.toString(int), which contains two
heap allocations inside. Apparently, if we use division to convert an integer to string can
be much faster.
In addition, the changes on String.indexOf method can improve SPECjbb2005 score.

> [classlib][jit][opt][performance] Optimize heap allocations in String(String, int) constructor
for JIT
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6056
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6056
>             Project: Harmony
>          Issue Type: Improvement
>          Components: Classlib
>    Affects Versions: 5.0M8
>            Reporter: Kevin Zhou
>             Fix For: 5.0M9
>
>         Attachments: HARMONY-6056.diff
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> This patch optimizes heap allocations in String(String, int) constructor for JIT performance
improvement.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message