You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Xiaoming Shi (JIRA)" <ji...@apache.org> on 2011/03/12 18:43:59 UTC

[jira] Created: (ZOOKEEPER-1014) DateFormat.getDateTimeInstance() is very expensive, we can cache it to improve performance

DateFormat.getDateTimeInstance() is very expensive, we can cache it to improve performance
------------------------------------------------------------------------------------------

                 Key: ZOOKEEPER-1014
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1014
             Project: ZooKeeper
          Issue Type: Bug
          Components: server
    Affects Versions: 3.3.2
            Reporter: Xiaoming Shi


In the file:
{noformat}
./zookeeper-3.3.2/src/java/main/org/apache/zookeeper/server/TraceFormatter.java
{noformat}
DateFormat.getDateTimeInstance() is called in the while loop. We can cache the return value, and improve performance.

This is similar to the  Apache Bug https://issues.apache.org/bugzilla/show_bug.cgi?id=48778 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Resolved: (ZOOKEEPER-1014) DateFormat.getDateTimeInstance() is very expensive, we can cache it to improve performance

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-1014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mahadev konar resolved ZOOKEEPER-1014.
--------------------------------------

    Resolution: Duplicate

marking it as duplicate.

> DateFormat.getDateTimeInstance() is very expensive, we can cache it to improve performance
> ------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1014
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1014
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.3.2
>            Reporter: Xiaoming Shi
>
> In the file:
> {noformat}
> ./zookeeper-3.3.2/src/java/main/org/apache/zookeeper/server/TraceFormatter.java
> {noformat}
> DateFormat.getDateTimeInstance() is called in the while loop. We can cache the return value, and improve performance.
> This is similar to the  Apache Bug https://issues.apache.org/bugzilla/show_bug.cgi?id=48778 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira