]> git.ipfire.org Git - thirdparty/bind9.git/commit
Lazily allocate fetch counter
authorAlessio Podda <alessio@isc.org>
Sat, 30 Aug 2025 07:21:20 +0000 (09:21 +0200)
committerAlessio Podda <alessio@isc.org>
Tue, 2 Sep 2025 09:22:28 +0000 (11:22 +0200)
commit20a15836619be6c195402a26cb04dda974c4e565
tree0262ea2f12a3fe9eff3880b17302fab5ff673b9c
parent3762bf7fede60840098971530d0d87f633b4745f
Lazily allocate fetch counter

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%.
lib/ns/query.c