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.lo...@gmail.com
http://profiles.google.com/wasserman.louis

Reply via email to