When looking from a performance point of view simpleDsteFormat DateTimeFormatter The difference with
There are differences depending on the environment in which it is used, It seems that there is not much difference at 10,000 times, When using a large amount of data, there are differences.
The cause is simpleDsteFormat is not thread-safe, so generate it every time. DateTimeFormatter is thread-safe so you don't have to generate it every time.
Simply write simpleDsteFormat is generated every time it is called. DateTimeFormatter is generated only once.
I wonder if the time to generate is a problem.
Recommended Posts