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)
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: pierre-olivier dot gaillard at fr dot thalesgroup dot com
- Cc: java at gcc dot gnu dot org
- Date: Tue, 06 Jun 2006 19:20:08 +0200
- Subject: Re: libcj java.nio.DirectBuffer is slow (no inlining)
- References: <44859BB9.8000608@fr.thalesgroup.com>
* P. O. Gaillard:
> 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.
Most of the java.nio buffer methods are non-final, so inlining can
only happen after devirtualization. This is hard to do at compile
time.
Are you sure the problem is lack of inlining? There used to be
problems with inefficient implementations of the array-based get/put
methods. Maybe you could post an excerpt of the profiles, so that we
can see what's going on.