Closed cuviper closed 6 months ago
We already avoid hashing for get/remove on empty maps, but we can also do this for single-entry maps. Even with a cheap hash function, a single equality check ought to be faster than any hash table lookup.
We already avoid hashing for get/remove on empty maps, but we can also do this for single-entry maps. Even with a cheap hash function, a single equality check ought to be faster than any hash table lookup.