hg: jdk8/tl/jdk: 7131192: BigInteger.doubleValue() is depressingly slow
alan.bateman at oracle.com
alan.bateman at oracle.com
Fri Jun 21 20:28:22 UTC 2013
Changeset: 814759462705
Author: bpb
Date: 2013-06-21 11:50 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/814759462705
7131192: BigInteger.doubleValue() is depressingly slow
Summary: In doubleValue() and floatValue() replace converting to String and parsing to Double or Float with direct conversion into IEEE 754 bits.
Reviewed-by: bpb, drchase, martin
Contributed-by: Louis Wasserman <lowasser at google.com>
! src/share/classes/java/math/BigInteger.java
+ test/java/math/BigInteger/PrimitiveConversionTests.java
More information about the security-dev
mailing list