Performance of GCJ JNI and CNI

Andrew Haley aph@redhat.com
Thu Aug 27 11:50:00 GMT 2009


Vaijayanthi Mala Suresh wrote:

> In case of more time spent on Java, what can be done to improve the performance.
> 
> While using CNI do we need to consider anything special like
> optimization flags, gcj configuration flags, initialization steps,
> etc.,
> 
> I would like to reduce the startup time as well. It takes some time
> before starting the application for performing the Registration of
> all the java packages(packages other than standard).

I'm surprised by that.  All that class registration does is add
classes to a table.  All the initialization happens later, when
the class is first used.

> Can you please help me with some optimization techniques which I would
> like to try it out for any performance improvements.

None of us has the slightest idea what might be causing your problems.
Obviously, you will be compiling everything with -O2 or better.

We need you to send us an example of poor performance.

Andrew.



More information about the Java mailing list