htab_hash_string

Neil Booth neil@daikokuya.demon.co.uk
Fri Aug 17 13:33:00 GMT 2001


Richard Henderson wrote:-

> You think it's worth an extra loop test for the count?
> I wouldn't have thought so.

I agree.  My thoughts on this probably come from the hashtable.c
implementation, where the length is readily available, and the loop
counter, and therefore truncatable.

> It isn't quite equivalent.

You're right, I'd forgotten.  I would still like to use your function
instead; I might patch that later.

> We should, however, get rid if hashtable.c altogether.

How / why?  Or do you mean just move it somewhere else?  It's more
specialised than the generic hashtables, and for a good reason.

Neil.



More information about the Gcc-patches mailing list