Bryce> Incidentally, JNI calls seem to be at least 10X
Bryce> slower than the JRE (for java->native calls, which this patch
doesn't
Bryce> effect). I imagine that speeding JNI up would help SWT and AWT
Bryce> significantly.
I assume you mean a call from java code to a native method implemented
as JNI. How did you measure this? I'd guess that the first such call
to a given method would be very slow, then faster on the second call,
after we look up and cache the pointer.
If we're still slow after that, then that is interesting. We generate
stubs here that shouldn't be too inefficient. I wonder what we could
do differently.