I need to calculate Math.exp() from java very frequently, is it possible to get a native version to run faster than java\'s Math.exp()
The problem with using JNI is the overhead involved in making the call to JNI. The Java virtual machine is pretty optimized these days, and calls to the built-in Math.exp() are automatically optimized to call straight through to the C exp() function, and they might even be optimized into straight x87 floating-point assembly instructions.