From: Colin Vidal Date: Thu, 11 Sep 2025 09:51:06 +0000 (+0200) Subject: do not inline dns_zone_gethooktable X-Git-Tag: v9.21.14~48^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d42d8891ac5f13da7f59e0237d2050798954fa18;p=thirdparty%2Fbind9.git do not inline dns_zone_gethooktable Since !10959 `dns_zone_gethooktable()` is only called once per query, and the suspicion (from perflab analysis) that this (simple, as just returning a pointer) call was slowing things down (perhaps because of code locality reasons?) doesn't matter anymore. So even if !10959 inlined it, it shouldn't matter anymore. --- diff --git a/lib/dns/zone.c b/lib/dns/zone.c index dfd97c2a360..dd16e4ce6e2 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -24874,7 +24874,7 @@ dns_zone_setrad(dns_zone_t *zone, dns_name_t *name) { rcu_read_unlock(); } -inline void * +void * dns_zone_gethooktable(dns_zone_t *zone) { REQUIRE(DNS_ZONE_VALID(zone)); return zone->hooktable;