Hey all... I was fiddling around with optimizing some code and I used a typical approximation to replace the SQRT() function. (This is common when coding vector length calculcations in C.) Funny thing, I tried several well-known approximations and found that my code, at best, ran as fast as the Math.sqrt() call or _slower_! I''m using JDK 1.3... anyone know if Sun has made the math library functions as optimized as possible? -Omar --- "We are Indigenous. Welcome." Indigenous Technologies, Inc.
[java] java.lang.Math functions
2 replies to this topic