Open virgil opened 8 years ago
I think that the blocklists will never grow up to a size that will cause performance problems. Btw i think that make sense to move the blocklist to a sqlite and:
That way the blocklist will never grow up and will have a self-cleaning system.
This might be of interest to @evilaliv3 and @obtuse .
@evilaliv3 has expressed concern about the size of the blocklists. In particular, that as-is we have to check whether a given URL matches any entry in the blocklist, and this search computes in time O(N).
It occurred to me we could get O(1) lookup time using either a hash table or a Bloom filter. Given that harddrive space of the blocklist is probably not an issue, it seems a hash table would be the simplest solution. If harddrive space is an issue, a Bloom filter would certainly solve the issue with small chance of false positives.