Re: Performance of GCJ JNI and CNI

David Daney <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.