3 ms·
Yes, we could also store the blacklist as a perfect hash, which would probably give us roughly the same memory usage with O(1) performance. But it would have t
by strenholme 6y ago
Yes, we could also store the blacklist as a perfect hash, which would probably give us roughly the same memory usage with O(1) performance. But it would have to be a separate hash than the LRU dynamic hash used for storing DNS entries.
Yes, there are dynamic perfect hashes, but they are too slow when we update the hash with each lookup, a common use case with DNS.