AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home.html
GNU General Public License v3.0
23.87k stars 1.75k forks source link

Browsing security and parental control each makes a call to AdGuard DNS servers #3693

Open timkgh opened 2 years ago

timkgh commented 2 years ago

Issue Details

I noticed that if I have either browsing security or parental control enabled, it adds 20ms of latency to each query. If I have both enabled, the added latency is 40ms.

It appears that each one of these features results in an additional query to the Adguard DNS servers.

Can it be optimized so that both are retrieved in a single call?

Expected Behavior

A single call to the Adguard DNS servers.

Actual Behavior

2 calls, each adding about 20ms of latency.

ainar-g commented 2 years ago

Can it be optimized so that both are retrieved in a single call?

This is unlikely, because it will require additional changes on the server, and also probably unnecessary. We'll probably concentrate on optimising or replacing the current implementation, including better caching and parallelising queries and filtering where we can.