]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: add fast path to roundrobin load balancing policy 16239/head
authorHolger Hoffstätte <holger@applied-asynchrony.com>
Thu, 9 Oct 2025 20:04:07 +0000 (22:04 +0200)
committerHolger Hoffstätte <holger@applied-asynchrony.com>
Thu, 9 Oct 2025 20:31:02 +0000 (22:31 +0200)
commit495f8e5f1f2c147f7431c5a6bfd4f4606b640fe3
tree8f59069a99a6c33abc36f98ea79207fd084ce6b2
parent248178dde0106b4a42b5d4312bb1cd11769e345c
dnsdist: add fast path to roundrobin load balancing policy

There is no need to collect all servers that are up when the current
server is already a good candidate. This avoids needless heap allocation
and deallocation in the vast majority of cases.

Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
pdns/dnsdistdist/dnsdist-lbpolicies.cc