Hashes can sometimes be cached, if there is enough room in the data construction where The main element is stored; caching the results of comparisons (a binary operation) is often impractical. However, comparisons can profit from shortcutting: if keys generally vary within the 1st handful of bytes, a detrimental comparison can be very fast.Henrik s… Read More