Hashes can sometimes be cached, if there is more than enough place in the data construction where The main element is stored; caching the result of comparisons (a binary operation) is frequently impractical. On the other hand, comparisons can reward from shortcutting: if keys often differ within the very first few bytes, a destructive comparison ca… Read More