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: PATCH: Speedup hashtables, ASM_OUTPUT_SECTION_NAME


>>>>> "Zack" == Zack Weinberg <zackw@stanford.edu> writes:

    Zack> With suitable hash and rehash functions, we wouldn't need
    Zack> prime-sized tables at all; we could use powers of two
    Zack> instead, and avoid at least one expensive integer modulus
    Zack> per hash lookup (two if there's collisions).  See how
    Zack> stringpool.c does it, for instance.

Good point -- but one thing at a time.  This patch drops the hashing
code off the radar, which is good enough.

--
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]