Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

lingjun-cg
Copy link
Collaborator

[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: #79

…n 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: dragonwell-project#79
Copy link
Collaborator

@D-D-H D-D-H left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good

@linade
Copy link
Collaborator

linade commented Jul 22, 2024

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?

@lingjun-cg lingjun-cg merged commit 3798df7 into dragonwell-project:master Jul 23, 2024
89 of 91 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants