[Mono-dev] [U-SPAM] Re: String.GetHashCode()

pablosantosluac pablosantosluac at terra.es
Mon Dec 3 15:40:06 EST 2007


I don't see the moment to try it with the plastic server... :-P
----- Original Message ----- 
From: "Miguel de Icaza" <miguel at novell.com>
To: "Andreas Nahr" <ClassDevelopment at A-SoftTech.com>
Cc: "'Robert Jordan'" <robertj at gmx.net>; <mono-devel-list at lists.ximian.com>
Sent: Monday, December 03, 2007 3:45 PM
Subject: Re: [Mono-dev] [U-SPAM] Re: String.GetHashCode()


> Hello,
> 
>    First of all, I love the idea.
> 
>> Don't forget that 4 bytes per Hashcode isn't enough. You also need a
>> boolean to store if the hash is already computed (as e.g. 0 is a valid
>> hash, too).
> 
>    You could assume that any string over N would contain the
> precomputed hashcode immediately after the string in a sizeof(IntPtr)
> aligned 32-bit location.
> 
>    What the N should still be measured.
> 
> Miguel
>> 
> _______________________________________________
> 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