
Ceki Gulcu wrote:
Thorbjoern Ravn Andersen wrote:
Ceki Gulcu (JIRA) skrev:
Just as importantly, logback will invoke Yoda time or SimpleDateformat, at most once per millisecond. So the performance of SimpleDateformat as well as Yoda time are as satisfactory as they are unimportant. Only the performance of System.currentMillis really matters.
"once per millisecond" does not merit unimportance as this might mean 1000 times per second.
True. However, keep in mind that the computation performed 1000 per second takes 2 microseconds.
To be clear, I meant to day that that particular computation takes *only* 2 microseconds, albeit it is performed 1000 times per second. -- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch