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?


>>>>> "Bryce" == Bryce McKinlay <bryce@mckinlay.net.nz> writes:

Bryce> It would be possible to inline the itable lookup, thus avoiding the
Bryce> call to _Jv_LookupInterfaceMethodIdx. I expect that would give a
Bryce> moderate performance gain, but also possibly increase code size. It
Bryce> would be an interesting experiment.

Today I was wondering if gcj knows that this function is `pure'.  For
instance, will gcj hoist it out of a loop?  It seems like this could
be a useful (perhaps minor) optimization.

Tom


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