Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 2744 invoked from network); 21 Jun 2006 08:01:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jun 2006 08:01:56 -0000 Received: (qmail 11698 invoked by uid 500); 21 Jun 2006 08:01:55 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 11607 invoked by uid 500); 21 Jun 2006 08:01:55 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 11596 invoked by uid 99); 21 Jun 2006 08:01:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jun 2006 01:01:55 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jun 2006 01:01:54 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CD9A67141E9 for ; Wed, 21 Jun 2006 08:00:30 +0000 (GMT) Message-ID: <501919.1150876830838.JavaMail.jira@brutus> Date: Wed, 21 Jun 2006 08:00:30 +0000 (GMT+00:00) From: "Vladimir Strigun (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Commented: (HARMONY-630) Performance improvement for BufferedReader and LineNumberReader classes In-Reply-To: <25710889.1150831298956.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-630?page=comments#action_12417055 ] Vladimir Strigun commented on HARMONY-630: ------------------------------------------ Hi Nathan, values are in milliseconds, so the less is better. As far as I see from posted values with new version we have some improvement in hsqldb and xalan benchmarks. > Performance improvement for BufferedReader and LineNumberReader classes > ----------------------------------------------------------------------- > > Key: HARMONY-630 > URL: http://issues.apache.org/jira/browse/HARMONY-630 > Project: Harmony > Type: Improvement > Components: Classlib > Reporter: Vladimir Strigun > Assignee: Nathan Beyer > Priority: Minor > Attachments: Harmony-630.patch > > Analysis of BufferedReader and LineNumberReader was made by our team. These classes are widely used and it's recommended, for instance, that any character IO should go through BufferedReader for better performance. Therefore it should perform well and should not itself be a bottleneck. > We have identified opportunity to increase performance of mentioned classes. Publicly available bench DaCapo[1] was used for performance measurement and we found that DaCapo:hsqldb benchmark performance can be improved within small modification of java.io.BufferedReader and java.io.LineNumberReader classes. Main idea of the patch (I will attach it soon) is to remove StringBuilder allocation from "malloc"-hot methods readLine. > Here is result of DaCapo execution with patched and original versions of classlib+J9: > Build Dacapo: fop Dacapo: hsqldb Dacapo: xalan Dacapo: chart > original 712.020 27232.647 4201.449 22573.192 > patched 715.152 26703.966 4161.018 22580.771 > [1] http://www-ali.cs.umass.edu/DaCapo/gcbm.html -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira