Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 58585 invoked from network); 31 Aug 2006 09:07:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Aug 2006 09:07:13 -0000 Received: (qmail 86184 invoked by uid 500); 31 Aug 2006 09:07:13 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 86145 invoked by uid 500); 31 Aug 2006 09:07:13 -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 86126 invoked by uid 99); 31 Aug 2006 09:07:13 -0000 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; Thu, 31 Aug 2006 02:07:13 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1C0A2410020 for ; Thu, 31 Aug 2006 09:03:23 +0000 (GMT) Message-ID: <8260882.1157015003112.JavaMail.jira@brutus> Date: Thu, 31 Aug 2006 02:03:23 -0700 (PDT) From: "Richard Liang (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Created: (HARMONY-1358) [classlib][sql] Improve the performance of java.sql.Time.valueOf(String ) method 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 [classlib][sql] Improve the performance of java.sql.Time.valueOf(String ) method -------------------------------------------------------------------------------- Key: HARMONY-1358 URL: http://issues.apache.org/jira/browse/HARMONY-1358 Project: Harmony Issue Type: Improvement Components: Classlib Reporter: Richard Liang Priority: Minor Hello, In this method, we first try to separate the string into three parts and validate each part of the string,then pass the validated whole string to a SimpleDateFormat object which do the real parsing job.It seems likely that the validating work and the parsing work are duplicate. And each time to invoke the java.sql.Time.valueOf() method, we need to get a new instance of SimpleDateFormat,this is inefficient because constructing a new SimpleDateFormat is costly. Best regards, Richard -- 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