This is the mail archive of the java@gcc.gnu.org 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]
Other format: [Raw text]

Re: gcj uses reflection for every INVOKEINTERFACE?


On Feb 26, 2004, at 6:26 PM, Adam Megacz wrote:

It looks like _Jv_LookupInterfaceMethodIdx() is getting called every
time a method overriding an interface method is invoked... is this
true?  Is there any way around this?

It occurred to me after reading your other messages that you're interested in getting rid of the reflection data rather than the runtime performance of interface calls.


Interface calls without reflection data are tricky. However, if you are doing a static, complete-application compilation - such that given an interface, at compile time you have complete knowledge of all classes that implement that interface, then you can build the interface dispatch tables at compile time thus eliminating the need for reflection data.

Regards

Bryce.


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