Math.exact vs. ExactMath
Gilles Duboscq
duboscq at ssw.jku.at
Thu May 1 17:28:46 UTC 2014
Hello,
I think the plan is to move to the Java 8 methods and deprecate/remove
the ExactMath methods that now have an equivalent in Java 8.
I don't really know when this will be done though.
-Gilles
On Thu, May 1, 2014 at 6:52 PM, Stefan Marr <java at stefan-marr.de> wrote:
> Hi:
>
> While trying to optimize some bits in TruffleSOM, I was looking through Java 8’s Math class which has a couple more operations covered than ExactMath, however a quick experiment indicates that Java 8’s Math class is not handled in the same way yet as ExactMath. At least a simple summation loop using addExact() was about 40% slower using Math instead of ExactMath.
>
> Is it planed to provide the same support for Java 8’s Math class as there is for ExactMath in the short term?
>
> Originally, I was actually looking for a bit shift with an exception on overflow, since it is used in the Mandelbrot benchmark.
> But I guess, there are too few use cases to really worry about it.
>
> Best regards
> Stefan
>
> --
> Stefan Marr
> INRIA Lille - Nord Europe
> http://stefan-marr.de/research/
>
>
>
More information about the graal-dev
mailing list