Currently we cache class IDs (uintptr) so they don't need to be found using the findClass JNI function.
But not method IDs which we call getMethodID for in each CallMethod. The same is true for field IDs. We could start caching these two types of IDs too.
We currently create global references to class IDs (which are objects), so method and field IDs should remain valid while we hold this global reference.
Currently we cache class IDs (uintptr) so they don't need to be found using the findClass JNI function.
But not method IDs which we call getMethodID for in each CallMethod. The same is true for field IDs. We could start caching these two types of IDs too.
We currently create global references to class IDs (which are objects), so method and field IDs should remain valid while we hold this global reference.