Performance of GCJ JNI and CNI

David Daney ddaney@caviumnetworks.com
Wed Aug 26 15:51:00 GMT 2009


Vaijayanthi Mala Suresh wrote:
> Hi,
>> I have converted an application which makes more number of native
> calls that was written using proprietary JVM compatible with version
> Java 1.1 using GCJ.
>> I had tried to convert this application using GCJ + JNI as well as GCJ + CNI.
> I don't see much performance improvements after using the GCJ
> precompilation. ie., not using the interpreter.
>> Can someone help me to understand why there is no performance improvement.
>
It is doubtful, we know nothing about the application.
If most of the application time were spent in the native methods, 
optimizing the other parts would not help much.
If you are allocating a lot of memory, the memory allocator and GC can 
dominate your application time.
> I am compiling this for MIPS platform.

That is notable in and of itself.
David Daney


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /