News for hackers. Stuff that matters.
Re:Adaptive Hashing by vlovich123 on Saturday May 10, 2025 @11:24PM (#43951095)
> For string keys, hash only the first and last 2 characters. For list keys, only hash the first 4 elements.

I would think it make some sense to change these constants as the collision chain grows, thereby improving the hash quality of keys and avoiding collisions as the table gets larger and larger

Re:Adaptive Hashing by BoingBoomTschak on Sunday May 11, 2025 @04:55AM (#43952415)
> If too many collisions, double the limit.