On 24 January 2011 13:11, Gilles Sadowski <gil...@harfang.homelinux.org> wrote:
> Hi.
>
>> Sebb resolved MATH-493.
>> -----------------------
>>
>>     Resolution: Fixed
>>
>> Fixed by using the Harmony code.
>>
>> Note: this appears to be at least as quick as StrictMath on Sun Java 1.6 in 
>> a crude test
>
> The performance comparison for "FastMath" should be against "Math", as 
> "StrictMath
> is expected to be slow(er). [That's why I've added the calls to "Math" in the
> performance unit tests.]

The Javadoc for FastMath says that it is a replacement for StrictMath,
which is why I tested against that.

But it's useful to test against Math as well.

Note that a lot of Math methods actually delegate to StrictMath anyway.

The main ones that don't are toRadians/toDegrees and min/max.

By the way, I got different results in Eclipse and when using Java
1.5, so any conclusions we draw from the performance tests need to
document the conditions.

>
> Regards,
> Gilles
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to