Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Target Java 8 and use DateTimeFormatter #33

Open
chibenwa opened this issue Jul 1, 2021 · 0 comments
Open

Target Java 8 and use DateTimeFormatter #33

chibenwa opened this issue Jul 1, 2021 · 0 comments

Comments

@chibenwa
Copy link

chibenwa commented Jul 1, 2021

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:

Screenshot from 2021-07-01 14-04-29

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant