commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MATH-740) Some "FastMath" functions are slow
Date Thu, 09 Feb 2012 16:05:59 GMT

    [ https://issues.apache.org/jira/browse/MATH-740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13204607#comment-13204607
] 

Gilles commented on MATH-740:
-----------------------------

I should note that the above numbers seem to vary wildly from run to run (my machine is fairly
loaded at the moment) but the trend is there: Always too slow.

Looking at the code, it seems that there are potential source of inefficiencies (like the
missing "final" keywords which I've added, in a recent commit for "atan") or accessing array
locations (instead of storing the value in a local variable), but each of those changes is
likely to not demonstrate a significant improvement. :(

                
> Some "FastMath" functions are slow
> ----------------------------------
>
>                 Key: MATH-740
>                 URL: https://issues.apache.org/jira/browse/MATH-740
>             Project: Commons Math
>          Issue Type: Wish
>            Reporter: Gilles
>            Priority: Minor
>             Fix For: 3.1
>
>
> From the two benchmarks we currently have in "FastMathTestPerfomance", we have that the
following functions are much slower in "FastMath" than in either "Math" or "StrictMath" (the
performance *loss*, for each of the benchmarks, is given in parentheses):
> * log10 (46%, 36%)
> * log1p (68%, 112%)
> * tan (11%, 61%)
> * atan (26%, 125%)
> * atan2 (44%, 40%)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message