From commits-return-43912-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Tue Sep 18 17:26:13 2007 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 9392 invoked from network); 18 Sep 2007 17:26:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Sep 2007 17:26:11 -0000 Received: (qmail 24581 invoked by uid 500); 18 Sep 2007 17:25:59 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 24547 invoked by uid 500); 18 Sep 2007 17:25:59 -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 24475 invoked by uid 99); 18 Sep 2007 17:25:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2007 10:25:59 -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; Tue, 18 Sep 2007 17:28:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5A801714212 for ; Tue, 18 Sep 2007 10:25:44 -0700 (PDT) Message-ID: <25165464.1190136344368.JavaMail.jira@brutus> Date: Tue, 18 Sep 2007 10:25:44 -0700 (PDT) From: "Aleksey Shipilev (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-4815) [classlib][nio] Charset encoding/decoding is ineffective In-Reply-To: <25822073.1190134303547.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-4815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528457 ] Aleksey Shipilev commented on HARMONY-4815: ------------------------------------------- Throwing away unpatched version and stressing best versions: Sun 1.6.0 (-server -Xmx512m -Xms512m): 1 thread - 11079 2 threads - 7170 4 threads - 3883 8 threads - 1900 16 threads - 1682 32 threads - 1743 64 threads - 1738 Harmony-r576670-patched (-Xem:server -Xms512m -Xmx512m): 1 thread - 23465 2 threads - 12003 4 threads - 7082 8 threads - 3500 16 threads - 4312 32 threads - 4553 64 threads - 4317 Still, 2.5x times slower, but scales extremely well. > [classlib][nio] Charset encoding/decoding is ineffective > -------------------------------------------------------- > > Key: HARMONY-4815 > URL: https://issues.apache.org/jira/browse/HARMONY-4815 > Project: Harmony > Issue Type: Improvement > Components: Classlib > Reporter: Aleksey Shipilev > Attachments: CharsetTest.java, HARMONY-4815.patch > > > Excess synchronizations and caching of encoder/decoder causes stalls if many thread doing encoding/decoding simultaneously. As far as one single instance of Encoder/Decoder is not thread-safe, we could create the separate encoder/decoder each time it is demanded. The overhead will be caused for excess object allocations, but boost from eliminating serial code is much bigger. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.