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

[Misc] optimize BigDecimal.divide #666

Merged
merged 1 commit into from
Aug 7, 2024
Merged

[Misc] optimize BigDecimal.divide #666

merged 1 commit into from
Aug 7, 2024

Conversation

weixlu
Copy link
Collaborator

@weixlu weixlu commented Aug 5, 2024

Summary: Use binary search in zero stripping of BigDecimal.divide

Testing: jtreg

Reviewers: zhuoren.wz, JoshuaZhuwj

Issue: #665

Summary: Use binary search in zero stripping of BigDecimal.divide

Testing: jtreg

Reviewers: zhuoren.wz, JoshuaZhuwj

Issue: #665
@weixlu weixlu changed the title [Runtime] optimize BigDecimal.divide [Misc] optimize BigDecimal.divide Aug 6, 2024
@weixlu
Copy link
Collaborator Author

weixlu commented Aug 7, 2024

This a clean cherry-pick from dragonwell11. Spark on TPC-DS shows a similar performance gain as it does on dragonwell11.

@@ -198,9 +198,12 @@
product(bool, UseIOPrioritySizePolicy, false, \
"eagerly decrease heap when io wait is high") \
\
product(uintx, IOPrioritySizePolicyEdenScale, 8, \
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里改啥了?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

减了一个空格,因为没对齐。之前加IOPrioritySizePolicyEdenScale这个参数的时候没把这里的 \ 对齐

Copy link
Collaborator

@JoshuaZhuwj JoshuaZhuwj left a comment

Choose a reason for hiding this comment

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

The same code change with jdk11. LGTM.

@weixlu weixlu merged commit 419cf4b into master Aug 7, 2024
20 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