Conversation

Show replies
Replying to
Since the full key must be retained (collisions => false positives), your intuition is correct that something LRU-like is necessary. A hash table storing the keys that overwrites on collision would be fast, or maybe a cuckoo hash variant to up the load factor/memory efficiency.