Tehreer/Tehreer-Android

Enable module level optimization on JNI library

mta452 opened this issue · 1 comments

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.

Resolved in v2.2. Set default visibility to hidden and enabled symbols stripping in release mode.