libcj java.nio.DirectBuffer is slow (no inlining)

Florian Weimer fw@deneb.enyo.de
Tue Jun 6 18:44:00 GMT 2006


* 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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /