[PATCH] Sunbug 7131192: Optimize BigInteger.doubleValue(), floatValue()
Louis Wasserman
wasserman.louis at gmail.com
Wed Jul 11 22:05:22 UTC 2012
Not entirely sure I'm posting this in the right place, but it looks like
it...
This is a patch to optimize BigInteger.doubleValue() and floatValue(),
which are both currently implemented by converting to a string and back.
Doing it with bit-twiddling and Double.longBitsToDouble improves the speed
of those methods by something like two orders of magnitude in my benchmarks.
Louis Wasserman
wasserman.louis at gmail.com
http://profiles.google.com/wasserman.louis
More information about the core-libs-dev
mailing list