[Mono-dev] String.GetHashCode()

Jerome Haltom wasabi at larvalstage.net
Fri Nov 30 22:15:25 EST 2007

4 bytes of storage for every string on the system at all times? Dunno.
Add it up I guess.

On Sat, 2007-12-01 at 01:23 +0000, Alan McGovern wrote:
> A thought struck me while i was dozing on the plane on the way home
> from the summit.
> Since strings are immutable, shouldn't it be possible to compute the
> hashcode once and store it rather than recomputing it over and over
> again? Is there some really obvious reason that i can't think of that
> would make this a bad idea? 
> Alan.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

More information about the Mono-devel-list mailing list