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]

Speeding up method searches


Various routines in libgcj currently perform linear string-comparison
searches in order to locate methods in class method tables - most
notably the reflection code, the interpreter, and interface method table
generation. This is very slow, and would also represent a significant
bottleneck for anyone wanting to implement a JIT compiler on the libgcj
platform.

Now, if the compiler could sort the methods table alphanumerically, we
should be able to get a huge speed increase in all these places by doing
a simple binary search.

Would it be possible to implement this in the compiler? Or does the
Class::methods table somehow depend on the vtable order of methods?

regards

  [ bryce ]



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