I am building an Android app that integrates with a 3rd party library that is provided as a native library (.so file).
The app would need to use functionality from the native library at around 0-30 JNI calls per second.
Although the function calls are non-blocking and return almost immediately, i am wondering whether this design should be avoided to begin with, or the overhead of frequent JNI calls in practice can be used?
I have read a similar question here: What makes JNI calls slow?
But besides that, i couldn't find too many numbers regarding JNI performance.