This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Interface method calls are slow.


Jeff Sturm writes:

> Methods currently can only be inlined if they are declared before
> they are used.

That's a gcc architecture issue. I think this could be changed in the
front-end. I'll file a PR for that.

> Also, inlining (final, static) methods across class boundaries does
> not yet seem to work.

I don't know if that's fixable. The C++ compiler goes away with that
because inline methods are declared in file included by every
compilation unit that requires them -- I believe. I'll have to check
with the C++ team.

./A

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]