Re:Supercolliding a PHP array (inserting 65536 elements take...
by nikic on Thursday December 29, 2011 @11:59AM
(#3404249)
Even if the HT hasn't reached the full size yet all elements will nonetheless collide: If the size currently is at 16 then 64 will still have a hash of 0, as will 128, etc. For 16 simply other values would additionally collide like 16, 32, 48, etc. These would stop being collisions as soon as the HT is resized, so we don't insert them.
[ Parent
| on HN ]
There are no comments on this comment yet.