harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Liang (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-1359) [classlib][sql] Improve the performance of java.sql.Date.valueOf(String ) method
Date Thu, 31 Aug 2006 09:21:31 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1359?page=all ]

Richard Liang updated HARMONY-1359:
-----------------------------------

    Attachment: Harmony-1359.diff

Hello,

Would you please try this patch? Please apply this patch after Harmony-1358. 

Thanks a lot.

Best regards,
Richard

> [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
>            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

        

Mime
View raw message