commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Borcherds (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (MATH-740) Some "FastMath" functions are slow
Date Thu, 06 Apr 2017 13:27:42 GMT

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

Michael Borcherds edited comment on MATH-740 at 4/6/17 1:27 PM:
----------------------------------------------------------------

Sorry, for 
> Also GWT 2.8 supports Math.doubleToLongBits() (probably very slow) but not Math.doubleToRawLongBits()
read.
> Also GWT 2.8 supports Double.doubleToLongBits() (probably very slow) but not Double.doubleToRawLongBits()

Math.powerOfTwoD() is a method from Math.java called from Math.ulp()
http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/src/share/classes/java/lang/Math.java


was (Author: murkle):
Sorry, for 
> Also GWT 2.8 supports Math.doubleToLongBits() (probably very slow) but not Math.doubleToRawLongBits()
read.
> Also GWT 2.8 supports Double.doubleToLongBits() (probably very slow) but not Double.doubleToRawLongBits()

Math.powerOfTwoD() is a method from Math.java
http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/src/share/classes/java/lang/Math.java

> 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: 4.0
>
>         Attachments: jafamatests.zip
>
>
> 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 was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message