On Thu, 19 Mar 2026 09:21:47 GMT, Raffaello Giulietti <[email protected]> wrote:
>> Replace loop-based normalisation with `Long.numberOfTrailingZeros` in >> `BigDecimal(double, MathContext)` constructor. >> >> Compute the number of trailing(rightmost) zero bits in the significand and >> perform a single shift, >> instead of repeated shifting in a loop. >> This preserves behaviour and improves performance. > > This has been proposed almost verbatim here: > https://mail.openjdk.org/pipermail/core-libs-dev/2025-December/156816.html > but unfortunately didn't go anywhere. @rgiulietti Thank you for your review. Sure thing! ------------- PR Comment: https://git.openjdk.org/jdk/pull/30303#issuecomment-4145046632
