This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: libcj java.nio.DirectBuffer is slow (no inlining)
Andrew Haley writes:
> P.O. Gaillard writes:
>
>
> > Gnat has the infrastructure to do inlining between separate
> > compilation units with -gnatn. This can bring great performance
> > improvements for code with lots of small methods. Is this feature
> > also available for GCJ ?
>
> Why not simply compile the files together? I'm not sure I see the
> advantage of this at all.
I was wrong when I wrote this; it is beneficial to inline methods in
some system classes. We could certainly do this, and I don't think it
would be very hard.
Andrew.