From commits-return-57294-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Wed Feb 18 05:33:26 2009 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 24769 invoked from network); 18 Feb 2009 05:33:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2009 05:33:26 -0000 Received: (qmail 23765 invoked by uid 500); 18 Feb 2009 05:33:25 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 23581 invoked by uid 500); 18 Feb 2009 05:33:25 -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 23561 invoked by uid 99); 18 Feb 2009 05:33:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 21:33:25 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 05:33:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DC078234C48C for ; Tue, 17 Feb 2009 21:33:01 -0800 (PST) Message-ID: <570393414.1234935181884.JavaMail.jira@brutus> Date: Tue, 17 Feb 2009 21:33:01 -0800 (PST) From: "deven you (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-6095) [classlib][luni] Performance improvement patch for java.text.DateFormatSymbols.DateFormatSymbols(Locale) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [classlib][luni] Performance improvement patch for java.text.DateFormatSymbols.DateFormatSymbols(Locale) -------------------------------------------------------------------------------------------------------- Key: HARMONY-6095 URL: https://issues.apache.org/jira/browse/HARMONY-6095 Project: Harmony Issue Type: Improvement Components: Classlib Affects Versions: 5.0M8 Reporter: deven you Attachments: hy-text.diff this constructor spend much time on getZoneString(), howerver it is rarely used in real world application. so I just delay loading the ZoneStrings the testcase is : import java.text.DateFormatSymbols; import java.util.Locale; public class TestDateFormatSymbols { public static void main(String[] args) { long time = System.currentTimeMillis(); DateFormatSymbols dfs = new DateFormatSymbols(Locale.getDefault()); time = System.currentTimeMillis() - time; System.out.println("the total time is " + time + " ms!"); } } I have test on on Intel(R) Core(TM)2 Duo Cpu 2.4GHZ, 2.98GB Memory machine, the result is as below: Harmony patch before: 1125 ms > Harmony patched: 78 ms -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.