May 21, 2013
8:14 a.m.
On 21 May 2013, at 09:59, Max Leske <maxleske@gmail.com> wrote:
3. SmallInteger>>identityHash is really slow. Using SmallInteger as keys in IdentityDictionary is significantly slower than using them in a regular Dictionary because the identity check is done via #identityHash (#hash simply answers self).
Yeah, SmallInteger>>#hashMultiply looks weird and complicated. Probably some attempt at distributing keys better. But like you say: if #hash can return self, why would #identityHash not do the same ? But I am no hashing expert...