This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]