[RFC] Integer hash

Valloud Andres Andres.Valloud at oya.state.or.us
Thu Aug 8 23:19:11 UTC 2002


Hello.

Andreas, I don't think bitAnd: SmallInteger maxValue or something like that
is a good hash.

If a proposed good hash is more expensive than aLargeInt \\ aSmallInt, we
might as well use

	LargeInteger>>hash

		^self

and let Sets and Dictionaries deal with the "big value" by doing \\ as
usual.

Just my 2 cents,
Andres.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020808/65865a05/attachment.htm


More information about the Squeak-dev mailing list