]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
chg: dev: Lazily allocate fetch counter
authorAlessio Podda <alessio@isc.org>
Tue, 2 Sep 2025 09:57:30 +0000 (09:57 +0000)
committerAlessio Podda <alessio@isc.org>
Tue, 2 Sep 2025 09:57:30 +0000 (09:57 +0000)
The counter in ns_client_t is used to track the maximum number of
recursions in the resolver, but it is created unconditionally when
starting the client and deallocated when resetting it.

This commit defers the allocation of the counter till recursion needs to
actually happen, speeding up authoritative workloads in perflab by
1.5~2%.

Merge branch 'alessio/lazy-fetch-counter-alloc' into 'main'

See merge request isc-projects/bind9!10917


Trivial merge