From: Miod Vallat Date: Mon, 11 Aug 2025 09:59:21 +0000 (+0200) Subject: No need to keep a bunch of string in memory after having printed them. X-Git-Tag: rec-5.4.0-alpha1~369^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69f8384cd4a64611151ecc36435b13045c93591a;p=thirdparty%2Fpdns.git No need to keep a bunch of string in memory after having printed them. And this allows the serial increase block to do less work. Signed-off-by: Miod Vallat --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 98359e75a7..2d06ff02c8 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -2076,8 +2076,12 @@ static int editZone(const ZoneName &zone, const PDNSColors& col) } } cout<<"Detected the following changes:"<getZoneRepresentation(true) << col.rst() <replaceRRSet(info.id, change.first.first, QType(change.first.second), records); + auto [qname, qtype] = change.first; + info.backend->replaceRRSet(info.id, qname, QType(qtype), records); } } post.clear();