[logback-dev] [JIRA] Issue Comment Edited: (LBCLASSIC-36) Synchronization of SimpleDateFormat object in DateConverter

Thorbjoern Ravn Andersen ravn at runjva.com
Sun Jun 14 21:54:33 CEST 2009


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!"



More information about the logback-dev mailing list