dragonwell-project / dragonwell8

Alibaba Dragonwell8 JDK
http://dragonwell-jdk.io
GNU General Public License v2.0
4.2k stars 497 forks source link

[Misc] optimize BigDecimal.divide #666

Closed weixlu closed 1 month ago

weixlu commented 1 month ago

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

Testing: jtreg

Reviewers: zhuoren.wz, JoshuaZhuwj

Issue: https://github.com/dragonwell-project/dragonwell8/issues/665

weixlu commented 1 month ago

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