-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Now the application opens the library and loads all its symbols into memory, natively
After that, all the symbols are passed to java through jni calls
The cons of this are:
- You are storing the same data in the application memory twice
- The jni calls are very slow, taking a very long time to load
To solve this problem, you need to do away with copying data from native to java by doing lazy loading
You need to load symbols only as they appear in the application list, do the search at the native level too, then give the result of the search as a pointer to java
this will fix long loading time and huge memory usage by the application (crashes).
it's also worth using "FastNative" and "CriticalNative" annotations for jni calls, it will make them faster
Hunabis
Metadata
Metadata
Assignees
Labels
No labels