This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: Speeding up type lookup


>>>>> "Martin" == Martin v Loewis <martin@loewis.home.cs.tu-berlin.de> writes:

    Martin> Sure. Do we need another version of

Thanks!

    Martin> ggc_add_tree_hash_table_root (one that operates on
    Martin> libiberty hashtab.c), or should I just register the type
    Martin> hash as a root with a custom callback?

I have no strong feeling.  Whatever you think is cleaner and simpler.
I guess I'd tend towards creating a new gcc_add_... function.
Eventually, I think that hash.h/hash.c should go in favor of the new
stuff -- certainly, the one use in the C++ front-end would be better
replaced with the automatically growing versions.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

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