]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
do not inline dns_zone_gethooktable
authorColin Vidal <colin@isc.org>
Thu, 11 Sep 2025 09:51:06 +0000 (11:51 +0200)
committerColin Vidal <colin@isc.org>
Thu, 11 Sep 2025 12:21:10 +0000 (14:21 +0200)
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.

lib/dns/zone.c

index dfd97c2a360b39c8b4227425541bab52259daaf3..dd16e4ce6e2052016e8238ee69ed6028b5fd0ef6 100644 (file)
@@ -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;