Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 43483 invoked from network); 1 Sep 2006 06:17:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Sep 2006 06:17:51 -0000 Received: (qmail 85181 invoked by uid 500); 1 Sep 2006 06:17:51 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 85148 invoked by uid 500); 1 Sep 2006 06:17:51 -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 85137 invoked by uid 99); 1 Sep 2006 06:17:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 23:17:51 -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; Thu, 31 Aug 2006 23:17:50 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F125F410028 for ; Fri, 1 Sep 2006 06:14:28 +0000 (GMT) Message-ID: <2203017.1157091268985.JavaMail.jira@brutus> Date: Thu, 31 Aug 2006 23:14:28 -0700 (PDT) From: "Paulex Yang (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Assigned: (HARMONY-1359) [classlib][sql] Improve the performance of java.sql.Date.valueOf(String ) method In-Reply-To: <31429759.1157015962531.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-1359?page=all ] Paulex Yang reassigned HARMONY-1359: ------------------------------------ Assignee: Paulex Yang > [classlib][sql] Improve the performance of java.sql.Date.valueOf(String ) method > -------------------------------------------------------------------------------- > > Key: HARMONY-1359 > URL: http://issues.apache.org/jira/browse/HARMONY-1359 > Project: Harmony > Issue Type: Improvement > Components: Classlib > Reporter: Richard Liang > Assigned To: Paulex Yang > Priority: Minor > Attachments: Harmony-1359.diff > > > 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.Date.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