This is a question related to a previous post, but this post was solved and now I wanted to change the direction of the question.
When working with JNI, it is necess
As I remember jclass is will be local to the calling method so can't be cached, however the method id can be. See http://java.sun.com/javase/6/docs/technotes/guides/jni/spec/design.html for more detaild info.
Sorry, I don't know about the performance aspect, any time I've used JNI it has been insignificant compared to the task in hand.