Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 16506 invoked from network); 10 May 2007 14:45:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 May 2007 14:45:36 -0000 Received: (qmail 7741 invoked by uid 500); 10 May 2007 14:45:43 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 7725 invoked by uid 500); 10 May 2007 14:45:43 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 7710 invoked by uid 99); 10 May 2007 14:45:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 07:45:43 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 07:45:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B85A571406A for ; Thu, 10 May 2007 07:45:15 -0700 (PDT) Message-ID: <19886498.1178808315752.JavaMail.jira@brutus> Date: Thu, 10 May 2007 07:45:15 -0700 (PDT) From: "Alexey Petrenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-3493) [classlib][nio]java.nio.Charset.encode()/decode() performance improvement. In-Reply-To: <33375904.1174896212376.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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.