ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50792] New: Dateformat is expensive and the result can be cached
Date Wed, 16 Feb 2011 03:26:11 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50792

           Summary: Dateformat is expensive and the result can be cached
           Product: Ant
           Version: 1.8.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: xiaoming@cs.wisc.edu


In the function getTimestamp() 

(./apache-ant-1.8.2/src/main/org/apache/tools/ant/DefaultLogger.java   
line:363 )

a DateFormat instance is created each time the function is called. We can cache
the instance and improve the performance.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message