Vote for faster Math!

If I got that right, double math performance has been significantly degraded by the decision to use StrictMath only.

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5005861

Shouldn’t that effect vecmath.jar?

Not really, hotspot creates intrinsics for various transcendentals and trig functions. So while its true that TAN is not intrsinfied (I’m working on it), SIN, COS, LN, LOG10, etc all are.

So this bug_id is going to be resolved??

In Tiger?

Tiger is done, its almost ready to ship. Anything that needs to be fixed will have to wait for the next version of Java. But hopefully it will be resolved soon

[quote]Not really, hotspot creates intrinsics for various transcendentals and trig functions. So while its true that TAN is not intrsinfied (I’m working on it), SIN, COS, LN, LOG10, etc all are.
[/quote]
Where do I get a log10 function? The Math class does not define one, so I’ve always written one in terms of base conversion from base ‘e’. Am I missing something?

A log10 method has been added (to java.Math) in Tiger.

Ah. Cool. Though it’s going to make it easy to accidentally write code that won’t run on 1.4. :slight_smile: