harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3493) [classlib][nio]java.nio.Charset.encode()/decode() performance improvement.
Date Thu, 10 May 2007 14:45:15 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-3493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12494766
] 

Alexey Petrenko commented on HARMONY-3493:
------------------------------------------

Leo, could you please attach full test to the JIRA?
Thanks in advance.

> [classlib][nio]java.nio.Charset.encode()/decode() performance improvement.
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-3493
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3493
>             Project: Harmony
>          Issue Type: Improvement
>          Components: Classlib
>            Reporter: Leo Li
>         Assigned To: Alexey Petrenko
>            Priority: Minor
>         Attachments: patch-3493.diff
>
>
> public void test()
> {
>    CharBuffer[] charbuffer = ...//omitted here, long data.
>    Charset charset = Charset.defaultCharset();
>    long startTime = System.currentTimeMillis();
>             for (int j = 0; j < 10000; j++) {
>                 for (int i = 0; i < charBuffers.length; i++) {
>                     charset.encode(charBuffers[i]);
>                 }
>             }
>             long endTime = System.currentTimeMillis();
>  System.out.println(endTime - startTime);
> }
> Harmony uses  2234 ms verses RI5 uses 859ms.

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