]> git.ipfire.org Git - thirdparty/pdns.git/commit
auth: Speedup DNSRecordContent::deserialize() a little 11511/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 21 Sep 2021 15:14:03 +0000 (17:14 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 23 Jan 2023 09:44:06 +0000 (10:44 +0100)
commit3cce32aca6d51bb8b4074a1642380984b0d9c7ee
tree396e972de22e2e4f868e1737a304a0c2090cf509
parente990a46d32d050b55536cb9ceddbe33b2e381c6c
auth: Speedup DNSRecordContent::deserialize() a little

The move from a vector to a PacketBuffer prevents the memory from
being zeroed while we are going to overwrite it right away.
The change from MOADNSParser to PacketReader avoids the need to
copy the header and the whole packet (allocation + copy),
parse the qname again, as well as the allocation of a vector of records
while we know we have only one of these.
pdns/dnsparser.cc
pdns/dnsparser.hh