Target Java 8 and use DateTimeFormatter
chibenwa opened this issue · 0 comments
chibenwa commented
In addition of the support of old java version, java.time
API introduced DateTimeFormatter that is far superior compared to the SimpleDateFormatter used in JsonLayoutBase
.
For instance, DateTimeFormatter is thread safe thus could be initiated at startup and reused.
This would enable some performance gains as this flame graph shows: