Enable module level optimization on JNI library
mta452 opened this issue · 1 comments
mta452 commented
Currently, native methods are being exported in the dynamic table even if they are not being used on Java side. This restricts the compiler to perform potential optimizations. By using visibility feature along with JNIEXPORT
and JNICALL
macros on shared functions, a much better binary can be produced.
mta452 commented
Resolved in v2.2
. Set default visibility to hidden and enabled symbols stripping in release mode.