Interface method calls are slow.

Alexandre Petit-Bianco apbianco@cygnus.com
Tue Nov 16 20:54:00 GMT 1999


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


More information about the Java mailing list