Integrated: 8331907: BigInteger and BigDecimal should use optimized division
Daniel Jeliński
djelinski at openjdk.org
Tue May 14 05:04:06 UTC 2024
On Wed, 8 May 2024 08:19:54 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:
> Replace the custom unsigned divide / remainder functions with the compiler-optimized Long.divideUnsigned / remainderUnsigned.
>
> No new tests. Existing tier1-3 tests continue to pass.
>
> I added a new set of divide benchmarks. Results in thread.
>
> I also removed the BigDecimal.toString benchmarks. They no longer serve their purpose - toString caches the returned value, so we were only benchmarking the cache access time.
This pull request has now been integrated.
Changeset: beea5305
Author: Daniel Jeliński <djelinski at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/beea5305b071820e2b128a55c5ca384caf470fdd
Stats: 219 lines in 4 files changed: 39 ins; 136 del; 44 mod
8331907: BigInteger and BigDecimal should use optimized division
Reviewed-by: rgiulietti, bpb
-------------
PR: https://git.openjdk.org/jdk/pull/19134
More information about the core-libs-dev
mailing list