commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arne Plöse (JIRA) <>
Subject [jira] [Commented] (MATH-579) FastMath.pow much slower than Math.pow
Date Thu, 19 May 2011 06:05:47 GMT


Arne Plöse commented on MATH-579:

{quote}This does not answer my question, which could be restated as: How can 100 ms matter
when the JVM can take several seconds to start up?
I'm curious of what real applications (that use CM) would run for less than a few seconds...{quote}

I could imagin of an GUI app where the users put some values (maybe a 3x3 matix) ant hit the
calc button and wait. In a GUI 100 ms are a long time.

So the developer can load FastMath (if she really want to use FastMath) in a separate thread
at startup ...

Thist hwole issue is more about usabillity and expected behavior and not the fact that it
takes up to 100ms to initialize FastMath.

If I use a lib where I am not really satified with, I will try to replace it. If I know there
is a startup penalty, I know it, and I can put the startup time in a place where it does not
hurt - its fine.   

> FastMath.pow much slower than Math.pow
> --------------------------------------
>                 Key: MATH-579
>                 URL:
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.0
>         Environment: java version "1.6.0_22"
> OpenJDK Runtime Environment (IcedTea6 1.10.1) (6b22-1.10.1-0ubuntu1)
> OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
> java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
>            Reporter: Arne Plöse
>             Fix For: 3.0
> calculating FastMath.pow(10, 0.1 / 20) is approximately 65 times slower as the Math.pow()
> Ether this is a bug or a javadoc comment is missing.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message