Tehreer / Tehreer-Android

Standalone text engine for Android aimed to be free from platform limitations
Apache License 2.0
89 stars 16 forks source link

Enable module level optimization on JNI library #7

Closed mta452 closed 6 years ago

mta452 commented 6 years ago

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 6 years ago

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