From d42d8891ac5f13da7f59e0237d2050798954fa18 Mon Sep 17 00:00:00 2001 From: Colin Vidal Date: Thu, 11 Sep 2025 11:51:06 +0200 Subject: [PATCH] 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. --- lib/dns/zone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/zone.c b/lib/dns/zone.c index dfd97c2a36..dd16e4ce6e 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;