mirror of
https://github.com/safing/portmaster.git
synced 2026-12-04 09:38:21 +00:00
760cd47b9f
The IPv4 filter was sized for 100 entries while the current base list contains about 18k IPv4 addresses. The filter was fully saturated, so every lookup of a global IPv4 address fell through to the cache database. The domain filter was sized for 1M entries with about 843k domains in use, which left little head room for additional intel sources. Raise the capacities with head room for growth: domain 1M -> 2M, ipv4 100 -> 200k, ipv6 100 -> 20k, asn 1k -> 10k, country 100 -> 300. This adds about 2 MB of memory for the domain filter and doubles the size of its record in the cache database. Count the values added per entity type and log them next to the capacity after a base list has been processed, so a list outgrowing its filter can be spotted in the logs. Filters restored from the cache database keep their stored size. Existing installations pick up the new capacities with the next base list update.