This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: just a little nitpik in bfd


Nick Clifton <nickc@cambridge.redhat.com> writes:

> > One more wrinkle: why do we need to hash len into the hash total?
> 
> It does no harm, and it might help in situations where a long string
> with low numbered ascii characters has a similar hash value to a
> shorter string with higher numbered ascii characters.

It might be interesting to test possible hash functions empirically on
the symbol names found in real programs, to see which ones gave better
distribution.

Ian


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