https://issues.apache.org/bugzilla/show_bug.cgi?id=50828
Summary: DateFormat.getDateTimeInstance() is very expensive, we
can cache it to improve performance
Product: Lenya
Version: 2.0.3
Platform: PC
Status: NEW
Severity: normal
Priority: P2
Component: Miscellaneous
AssignedTo: [email protected]
ReportedBy: [email protected]
In the files:
./apache-lenya-2.0.3-src/externals/cocoon_2_1_x/src/blocks/profiler/java/org/apache/cocoon/generation/ProfilerGenerator.java
line:191
./apache-lenya-2.0.3-src/externals/cocoon_2_1_x/src/java/org/apache/cocoon/generation/StatusGenerator.java
line:255
DateFormat.getDateTimeInstance() is created in each function. We can cache the
value by adding a static class field and improve performance.
This is similar to the Apache Bug
https://issues.apache.org/bugzilla/show_bug.cgi?id=48778
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]