faster Math.exp() via JNI?

前端 未结 15 666
时光取名叫无心
时光取名叫无心 2021-01-11 22:43

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()

15条回答
  •  Happy的楠姐
    2021-01-11 23:28

    Use Java's.

    Also, cache results of the exp and then you can look up the answer faster than calculating them again.

提交回复
热议问题