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()
Math.exp()
You'd want to wrap whatever loop's calling Math.exp() in C as well. Otherwise, the overhead of marshalling between Java and C will overwhelm any performance advantage.