* Hashtable.cs (Find): Before calling KeyEquals, check to see if k
commit72d62fcf1791a8d5d8f5b1acc82a02ff540340db
authorBen Maurer <benm@mono-cvs.ximian.com>
Mon, 20 Dec 2004 23:01:29 +0000 (20 23:01 -0000)
committerBen Maurer <benm@mono-cvs.ximian.com>
Mon, 20 Dec 2004 23:01:29 +0000 (20 23:01 -0000)
tree8073ff16a2929f946e221325fe89160522bf814d
parent1fb732c551a5226654d08f4b5f994c930888168d
* Hashtable.cs (Find): Before calling KeyEquals, check to see if k
== key (ie, they are the same pointer). In many cases, this will
avoid two virtual calls. This gives me 1% on mcs bootstrap (!!!!)

svn path=/trunk/mcs/; revision=38001
mcs/class/corlib/System.Collections/ChangeLog
mcs/class/corlib/System.Collections/Hashtable.cs