Hashes can sometimes be cached, if there is ample place in the information construction where The crucial element is saved; caching the result of comparisons (a binary operation) is usually impractical. On the other hand, comparisons can reward from shortcutting: if keys typically vary within the very first several bytes, a unfavorable comparison c