dnsdist: add support for specifying multiple names to expungeByName
- Program: dnsdist
- Issue type: Feature request
If you need to purge multiple (unrelated) names, the only solution is to call expungeByName for each name. expungeByName iterates over each cache entry, so if you have a large cache (several millions entries in my case), this is highly inefficient, as each call to expungeByName will iterate the whole cache again.
In my use case, purging a hundred entries will typically take dozens of seconds where dnsdist uses 100% CPU.
Looks like this feature didn't got the attention, I guess hopes of this happening is kind of low, right?
It mostly depends on whether someone cares about it enough to actually write the code, at this point :)
I'm going to postpone this once more. I have been thinking about a different packet-cache design for 1.10 that would make this kind of operation much cheaper anyway.