This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
libcj java.nio.DirectBuffer is slow (no inlining)
- From: "P.O. Gaillard" <pierre-olivier dot gaillard at fr dot thalesgroup dot com>
- To: java at gcc dot gnu dot org
- Date: Tue, 06 Jun 2006 17:14:01 +0200
- Subject: libcj java.nio.DirectBuffer is slow (no inlining)
- Reply-to: pierre-olivier dot gaillard at fr dot thalesgroup dot com
Hello,
I am using the gcj 4.1 that came with Fedora Core 5 and the NIO buffers are
quite slow. From what I see with Oprofile, I would say that this is because the
code is not inlined.
Is it possible (safe, reasonable?) to compile libgcj with -O3 ? If so why is the
libgcj in FC5 not compiled that way ?
Also, I have noticed that inlining does not seem to happen with methods from
other classes and non final methods. Am I right ?
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 ?
thank you very much for your attention,
P.O. Gaillard