[RFC] Integer hash

danielv at netvision.net.il danielv at netvision.net.il
Thu Aug 8 22:50:52 UTC 2002


PluggableSet/Dictionary allow to set hashes at the collection instance
level. This isn't a "reason not to", but it's a good and easy way to
test hashes before we make them universal.

For an example, Celeste needs good hashing for largish SmallIntegers -
see the method integerSet.

BTW, how about using a hash from the world of security (MD5 or
something)? we seem to have primitives for these, and by their
requirements, they must make good use of the bits. Primitive or not,
they might still be too slow, but it might be worth testing.

Daniel

Andreas Raab <Andreas.Raab at gmx.de> wrote:
> If you see a reason not to change #hash in the proposed way, speak up
> now or be ready to bear the consequences ;-)
> 
> Cheers,
>   - Andreas



More information about the Squeak-dev mailing list