[PATCH] speedup the java front-end a little
Andrew Pinski
pinskia@physics.uc.edu
Fri Mar 26 20:36:00 GMT 2004
I noticed that we were speeding 2% of our time while compiling
libgcj in fnmatch, so I decided to take a look to see why we
were calling it and I noticed that java_or_class_file could
be improved by using strcmp. This patch implements the speedup.
Also note that on platforms like x86 there is an even more speedup
than I saw because the strlen and strcmp will be inlined.
OK? Bootstrapped on powerpc-apple-darwin7.2.0 with no regressions.
Thanks,
Andrew Pinski
ChangeLog:
* jcf-io.c (java_or_class_file): Use strcmp instead of fnmatch.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: speedupjava.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040326/eac3c6c0/attachment.txt>
More information about the Gcc-patches
mailing list