Long term we want to make the hashing algorithm used for keyed collections
pluggable. 16-bit and 32-bit hashers would be supplied with the product --
you would be free to implement your own hasher (maybe you want a 24-bit
hash).
But this must be done carefully since switching out the hasher means that
the collection must be rehashed. This would be easier with a pluggable
hasher because plugging in the hasher would cause the collection to be
rehashed automatically (as opposed to simply changing to 32-bit and then
wondering which collections needed rehashing, which did not, and which had
already been rehashed.
This would also make the image smaller because there is a lot of duplicate
code between the existing 'high capacity' keyed collections and the normal
ones
John
--
View this message in context: http://forum.world.st/Hash32-Bit-would-be-a-good-thing-tp3772024p3772931.html
Sent from the Instantiations mailing list archive at Nabble.com.
John
--
View this message in context: http://forum.world.st/Hash32-Bit-would-be-a-good-thing-tp3772024p3772938.html
But, as you know, there already is a 32-bit hash function -- abtHash32.
John
--
View this message in context: http://forum.world.st/Hash32-Bit-would-be-a-good-thing-tp3772024p3773311.html