mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 11:28:58 +00:00
Previously, we created a separate filter for each stale flow, resulting in O(n^2) complexity when deleting flows because the netlink llibrary iterates over all filters for each flow. This change introduces a new filter backed by a `sets.Set` for O(1) lookup per flow. This reduces the overall complexity of cleaning up stale entries to O(n).