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: 4.0.0 JNI/reflection invocation 2/4/8 times as slow as in 3.3.3


> 
> Hi,
> 
> I have a test which compares the execution time of a pure java procedure
> vs. JNI/reflection calls.
> 
> Under certain conditions the JNI/reflection overhead doubles for each
> invocation of the test program since gcc 4.0.0.  This problem only
> appears if I call ~200000 reflection methods in each round; when calling
> ~60000 methods the initial overhead is the same as in 3.3.3 and it
> doesn't increase with each invocation.
> 
> Does anybody know which change since 3.3.3(*) could cause this odd
> behaviour?  
> 

Could you file a bug, there was a patch recently to help JNI performance
but I really doubt that would hurt.

-- Pinski


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