dragonwell-project / dragonwell8

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

[Misc] optimize BigDecimal.divide #666

Closed weixlu closed 3 months ago

weixlu commented 3 months 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 3 months ago

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