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

P.O. Gaillard pierre-olivier.gaillard@fr.thalesgroup.com
Tue Jun 6 15:16:00 GMT 2006


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


More information about the Java mailing list

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