dragonwell-project / dragonwell21

GNU General Public License v2.0
66 stars 19 forks source link

[Backport] 8333462: Performance regression of new DecimalFormat() when compare to jdk11 #82

Closed lingjun-cg closed 2 months ago

lingjun-cg commented 2 months ago

[Backport] 8333462: Performance regression of new DecimalFormat() when compare to jdk11

Summary: The DecimalFormat constructor calls DecimalFormatSymbols.findNonFormatChar(String,char) multiple times, and the lambda implementation of findNonFormatChar is slow than plain loop implementation.

Testing: All java.text.format jtreg.

Reviewers: D-D-H, Yude Lin

Issue: https://github.com/dragonwell-project/dragonwell21/issues/79

linade commented 2 months ago

Nice. Someone is backporting this to the jdk21u upstream. As I understand, we not waiting for that because we want this in the next release?