This is the mail archive of the
mailing list for the GCC project.
Re: PATCH [mainline] speed up comparing enums declared in multiple translation units
On Mar 9, 2004, at 1:33 PM, Dale Johannesen wrote:
On Mar 9, 2004, at 1:29 PM, Fariborz Jahanian wrote:
I had something like this before I did my new patch. It took hour and
one-half on my 2G G5 machine.
Note that saving comes not in speeding up type comparison, but avoid
repeat comparisons. This is
at least the case in mesa. With my patch, mesa built in 13 minutes
with a gcc built with -O0 -g.
Perhaps what you want is hash(T1, T2) to remember the result of
previous comparisons. This need not be
limited to enum's, and might be helpful with the IMA problem of
multiple copies of types, as well.
Perhaps. But I am using the infrastructure already in there to keep
track of types being compared. Currently,
it is only being used for struct/union. I extended it for enums. I
don't see a need for additional components,
unless we want to make a wholesome change in this area.