
14 Jun
2009
14 Jun
'09
7:54 p.m.
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. Would a reasonable optimization be "once per second" with the miliseconds being hacked in afterwards? -- Thorbjørn Ravn Andersen "...plus... Tubular Bells!"