[Mono-list] mcs compiles on linux. Now what?

Dan Lewis dihlewis@yahoo.co.uk
Thu, 7 Mar 2002 22:31:27 +0000 (GMT)

Congratulations, lupus!

 --- Paolo Molaro <lupus@ximian.com> wrote:
> System.Collections.Hashtable::Find() takes more than 40% of the compile
> This suggest we may be using bad hash functions or that the hashtable
> doesn't resize correctly, since the average compare per lookup is
> greater than 5 (it should be about 1). So check the sources for
> bad GetHashCode() implementations, create tests to check that the
> hashtable behaves correctly when expanding.

I seem to remember the default GetHashCode() implementation returns 0 (a
perfect hash function -- if there's only one key :). Would it be possible to
implement Object.GetHashCode() as an internal call? (a shallow hash based on
the object bits).


Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts