harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Regis Xu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6195) [classlib][text] - improve performance for SimpleDateFormat.format/parse
Date Tue, 05 May 2009 08:17:30 GMT

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

Regis Xu commented on HARMONY-6195:
-----------------------------------

I ran the micro benchmark 5 times before and after the patch respectively

before:
java.text.SimpleDateFormat.format: 4602    4363    4614    4668    4750
java.text.SimpleDateFormat.parse: 4664    5899    5016    5973    6128
com.ibm.icu.text.SimpleDateFormat.format: 2308    2504    2315    2155    2492
com.ibm.icu.text.SimpleDateFormat.parse: 3566    2960    2653    2564    3605

after:
java.text.SimpleDateFormat.format: 3262    3355    3203    3311    3502
java.text.SimpleDateFormat.parse: 3841    3786    3185    3137    4107
com.ibm.icu.text.SimpleDateFormat.format: 2317    2146    2284    2372    2252
com.ibm.icu.text.SimpleDateFormat.parse: 3446    3506    3830    4019    3744

java.text.SimpleDateFormat.format is still slower 50% than com.ibm.icu.text.SimpleDateFormat.format.
Any suggestion/comments are welcome.




> [classlib][text] - improve performance for SimpleDateFormat.format/parse
> ------------------------------------------------------------------------
>
>                 Key: HARMONY-6195
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6195
>             Project: Harmony
>          Issue Type: Improvement
>          Components: Classlib
>    Affects Versions: 5.0M9
>            Reporter: Regis Xu
>         Attachments: DateFormatBench.java, HARMONY-6195.diff
>
>
> Harmony delegate SimpleDateFormat.format/parse to icu, but the speed is slower than icu.
The only extra wok is setTimeZone before delegating. Since time zone is rarely changed, we
can only set it when changed.

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