[Mono-devel-list] String::GetHashCode speedup

Miguel de Icaza miguel at ximian.com
Wed Feb 25 11:00:43 EST 2004


Hello,

> > Until that happens, it does not make sense to go to the managed
> > version.  It is a change that just changes the conditions to something
> > that looks better in this particular benchmark.
> Well, the idea is that you are going to get the hashcode on small
> strings more often than on large strings, so you still get a net
> benefit.
> 
> For example, if I remember correctly from when I was optimizing MCS, a
> large percent of our calls to Hashtable are looking up local variables.
> I know that coding conventions are in dispute, but I doubt we are
> looking up many 30 some char variable names.

Dear dude, please do a poll of all the string lengths used in the world
before your patch changes the direction.



More information about the Mono-devel-list mailing list