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: ReRe: performance - some details (and shellsort)


>>>>> "Jeff" == Jeff Sturm <jsturm@sigma6.com> writes:

Jeff> That's it.  If we help the compiler a little it can optimize
Jeff> away the the call to _Jv_CheckArrayStore().

_Jv_CheckArrayStore is fairly expensive as it calls
Class.isAssignableFrom.  Currently this method can be quite slow,
particularly if looking at interfaces.

It is possible to rewrite this method to be faster, but it requires
compiler changes, I think.

Optimizing away calls to it would also be good, when possible.  I
didn't look at the example code to see if it is possible (in theory)
in that case.

Tom

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