Yes I know Now in pharo if I do not change the hash of my objects and I get a lot of them in a dictionary I do get bad hash: at least this is what I understood from the limited number of hash bits. So this means that by default we have bad performance. no? Stef
yyyyyyyyeeeeeeeeeeesssssssssssssssssssssssss and get linearrrrrrrrrrrrrrrrrrrrrly boring and slow.
Yes, but only if your objects don't implement #hash properly. HashMap trades space and time to get O(1) behavior IF you have lots of elements with bad hash values. If the hash values are good (which is the case most of the time) or if you have not that many elements (which is the case most of the time), it is a waste of time and space though.
Lukas
-- Lukas Renggli http://www.lukas-renggli.ch
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project