[ 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