This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++: Why do we nreverse CLASSTYPE_TAGS
> OK, I'll experiment with that approach. What threasold would you put
> for "lots"?
I dunno. Probably 10 or so, to start. With fewer than that, hashing
can't possibly be a win. By the time you get to 100, I'm sure it will
be.
> Another case I'm thinking of is when set CLASSTYPE_TAGS with
> current_binding_level->tags, although I do not believe that would be a
> real obstacle.
Yes, that's a bit of complexity, but we should be able to lose that as
well.
--
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery dot com