Tehreer / Tehreer-Android

Standalone text engine for Android aimed to be free from platform limitations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enable module level optimization on JNI library

mta452 opened this issue · 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.