This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: very slow jni code callbacks
Herman ten Brugge wrote:
> I did try some older gcc releases because I once had good
> results for callbacks.
> The 4.1.2 release shows some different results.
>
> # open jdk gcj
> # no_jni 1.48 12.12 ( 8 times slower)
> # jni 66.70 200.93 ( 3 times slower)
>
> So there must be a change some time ago that made this
> much slower.
It depends only on the number of active ClassLoaders, and how much
processing they do. The fix for this is to remove the classname
lookups at runtime.
Andrew.