On 21.05.2013, at 10:14, Sven Van Caekenberghe <[email protected]> wrote:
> > On 21 May 2013, at 09:59, Max Leske <[email protected]> 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. That's exactly what I gathered from the issues I looked through on FogBugz. > > But like you say: if #hash can return self, why would #identityHash not do > the same ? > > But I am no hashing expert...
