DateTimeFormatter的运行速度非常慢

时间:2018-10-09 12:27:08

标签: java datetime-format java-time

DateTimeFormatter.BASIC_ISO_DATE.format(LocalDate localDate)

工作非常慢。

收集一些统计信息后,我发现每119300次调用花费42836毫秒。

我想知道为什么它这么慢,最快地解析相同结果的最佳方法是什么?

此外,LocalDate#format也是如此-每71038次调用27856毫秒

0 个答案:

没有答案