[Mono-devel-list] CoreLib's HashTable CalcPrime() new code

Thong (Tum) Nguyen tum at veridicus.com
Mon Sep 1 18:30:25 EDT 2003


One last question -- why does HashTable uses int for capacity? Isn't
uint more appropriate? Why did MS chose to use int eve rywhere? Sometime
in the future we will have LOTS of ram, enough to have over 2 billion
elements... :-) In any case, i wounder if signed or unsigned shift
operations are faster? Compiler might be adding some extra "&" masks. 



 

The reason is because unsigned types aren't CLS compliant.

 

^Tum

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030902/d71dd6c2/attachment.html 


More information about the Mono-devel-list mailing list