Re: very slow jni code callbacks
Andrew Haley <[email protected]>
| Newsgroups | gmane.comp.gcc.java.devel |
|---|---|
| Message-ID | <[email protected]> |
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.